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/aiff.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/aiff.c')
-rw-r--r-- | libavformat/aiff.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/libavformat/aiff.c b/libavformat/aiff.c index c4c24ff475..421d4f6200 100644 --- a/libavformat/aiff.c +++ b/libavformat/aiff.c @@ -428,8 +428,8 @@ static int aiff_read_seek(AVFormatContext *s, return pcm_read_seek(s, stream_index, timestamp, flags); } - -static AVInputFormat aiff_demuxer = { +#ifdef CONFIG_AIFF_DEMUXER +AVInputFormat aiff_demuxer = { "aiff", "Audio IFF", 0, @@ -439,9 +439,10 @@ static AVInputFormat aiff_demuxer = { aiff_read_close, aiff_read_seek, }; +#endif -#ifdef CONFIG_MUXERS -static AVOutputFormat aiff_muxer = { +#ifdef CONFIG_AIFF_DEMUXER +AVOutputFormat aiff_muxer = { "aiff", "Audio IFF", "audio/aiff", @@ -453,14 +454,4 @@ static AVOutputFormat aiff_muxer = { aiff_write_packet, aiff_write_trailer, }; -#endif //CONFIG_MUXERS - -int ff_aiff_init(void) -{ - av_register_input_format(&aiff_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&aiff_muxer); -#endif //CONFIG_MUXERS - return 0; -} - +#endif |