[vlc-devel] commit: rawaud: default FOURCC with local rather than low endianess ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun May 17 10:53:06 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sun May 17 11:52:24 2009 +0300| [a7bb5dffd385654b2af5acd5760ff7ef4446bd99] | committer: Rémi Denis-Courmont
rawaud: default FOURCC with local rather than low endianess
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7bb5dffd385654b2af5acd5760ff7ef4446bd99
---
modules/demux/rawaud.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/modules/demux/rawaud.c b/modules/demux/rawaud.c
index b20bb77..c3ff27b 100644
--- a/modules/demux/rawaud.c
+++ b/modules/demux/rawaud.c
@@ -48,11 +48,17 @@ static void Close( vlc_object_t * );
#define FOURCC_TEXT N_("FOURCC code of raw input format")
#define FOURCC_LONGTEXT N_( \
- "FOURCC code of the raw input format. This is a four character string. Default is s16l." )
+ "FOURCC code of the raw input format. This is a four character string." )
#define LANG_TEXT N_("Forces the audio language.")
#define LANG_LONGTEXT N_("Forces the audio language for the output mux. Three letter ISO639 code. Default is 'eng'. ")
+#ifdef WORDS_BIGENDIAN
+# define FOURCC_DEFAULT "s16b"
+#else
+# define FOURCC_DEFAULT "s16l"
+#endif
+
vlc_module_begin();
set_shortname( "Raw Audio" );
set_description( N_("Raw audio demuxer") );
@@ -63,7 +69,8 @@ vlc_module_begin();
add_shortcut( "rawaud" );
add_integer( "rawaud-channels", 2, 0, CHANNELS_TEXT, CHANNELS_LONGTEXT, false );
add_integer( "rawaud-samplerate", 48000, 0, SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, false );
- add_string( "rawaud-fourcc", "s16l", NULL, FOURCC_TEXT, FOURCC_LONGTEXT, false );
+ add_string( "rawaud-fourcc", FOURCC_DEFAULT, NULL,
+ FOURCC_TEXT, FOURCC_LONGTEXT, false );
add_string( "rawaud-lang", "eng", NULL, LANG_TEXT, LANG_LONGTEXT, false);
vlc_module_end();
More information about the vlc-devel
mailing list