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/mp3.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/mp3.c')
-rw-r--r-- | libavformat/mp3.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c index cdf02dc88b..7b1a147a59 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -368,6 +368,7 @@ static int mp3_write_trailer(struct AVFormatContext *s) } #endif //CONFIG_MUXERS +#ifdef CONFIG_MP3_DEMUXER AVInputFormat mp3_demuxer = { "mp3", "MPEG audio", @@ -378,8 +379,8 @@ AVInputFormat mp3_demuxer = { mp3_read_close, .extensions = "mp2,mp3,m2a", /* XXX: use probe */ }; - -#ifdef CONFIG_MUXERS +#endif +#ifdef CONFIG_MP2_MUXER AVOutputFormat mp2_muxer = { "mp2", "MPEG audio layer 2", @@ -396,8 +397,8 @@ AVOutputFormat mp2_muxer = { mp3_write_packet, mp3_write_trailer, }; - -#ifdef CONFIG_MP3LAME +#endif +#ifdef CONFIG_MP3_MUXER AVOutputFormat mp3_muxer = { "mp3", "MPEG audio layer 3", @@ -411,16 +412,3 @@ AVOutputFormat mp3_muxer = { mp3_write_trailer, }; #endif -#endif //CONFIG_MUXERS - -int mp3_init(void) -{ - av_register_input_format(&mp3_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&mp2_muxer); -#ifdef CONFIG_MP3LAME - av_register_output_format(&mp3_muxer); -#endif -#endif //CONFIG_MUXERS - return 0; -} |