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/mmf.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/mmf.c')
-rw-r--r-- | libavformat/mmf.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c index d43667b23a..bcee86bba9 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -301,8 +301,8 @@ static int mmf_read_seek(AVFormatContext *s, return pcm_read_seek(s, stream_index, timestamp, flags); } - -static AVInputFormat mmf_demuxer = { +#ifdef CONFIG_MMF_DEMUXER +AVInputFormat mmf_demuxer = { "mmf", "mmf format", sizeof(MMFContext), @@ -312,9 +312,9 @@ static AVInputFormat mmf_demuxer = { mmf_read_close, mmf_read_seek, }; - -#ifdef CONFIG_MUXERS -static AVOutputFormat mmf_muxer = { +#endif +#ifdef CONFIG_MMF_MUXER +AVOutputFormat mmf_muxer = { "mmf", "mmf format", "application/vnd.smaf", @@ -326,14 +326,4 @@ static AVOutputFormat mmf_muxer = { mmf_write_packet, mmf_write_trailer, }; -#endif //CONFIG_MUXERS - -int ff_mmf_init(void) -{ - av_register_input_format(&mmf_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&mmf_muxer); -#endif //CONFIG_MUXERS - return 0; -} - +#endif |