diff options
author | Måns Rullgård <mans@mansr.com> | 2006-07-10 21:14:37 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-07-10 21:14:37 +0000 |
commit | ff70e60176056daf646109b8e42654a3036fa02b (patch) | |
tree | 42e32d1e4bff334964cf93766ff2da6ee9a8f1d3 /libavformat/au.c | |
parent | 4cac0d5589ab1a076e977425925015f2c8e591a8 (diff) | |
download | ffmpeg-ff70e60176056daf646109b8e42654a3036fa02b.tar.gz |
allow individual selection of muxers and demuxers
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/au.c')
-rw-r--r-- | libavformat/au.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/libavformat/au.c b/libavformat/au.c index f4762607e7..5f15749d9c 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -178,7 +178,8 @@ static int au_read_close(AVFormatContext *s) return 0; } -static AVInputFormat au_demuxer = { +#ifdef CONFIG_AU_DEMUXER +AVInputFormat au_demuxer = { "au", "SUN AU Format", 0, @@ -188,9 +189,10 @@ static AVInputFormat au_demuxer = { au_read_close, pcm_read_seek, }; +#endif -#ifdef CONFIG_MUXERS -static AVOutputFormat au_muxer = { +#ifdef CONFIG_AU_MUXER +AVOutputFormat au_muxer = { "au", "SUN AU Format", "audio/basic", @@ -202,13 +204,4 @@ static AVOutputFormat au_muxer = { au_write_packet, au_write_trailer, }; -#endif //CONFIG_MUXERS - -int au_init(void) -{ - av_register_input_format(&au_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&au_muxer); -#endif //CONFIG_MUXERS - return 0; -} +#endif //CONFIG_AU_MUXER |