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/dv.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/dv.c')
-rw-r--r-- | libavformat/dv.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c index 03372114f9..b39d0b16b6 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -1000,7 +1000,8 @@ static int dv_write_trailer(struct AVFormatContext *s) } #endif /* CONFIG_MUXERS */ -static AVInputFormat dv_demuxer = { +#ifdef CONFIG_DV_DEMUXER +AVInputFormat dv_demuxer = { "dv", "DV video format", sizeof(RawDVContext), @@ -1011,9 +1012,9 @@ static AVInputFormat dv_demuxer = { dv_read_seek, .extensions = "dv,dif", }; - -#ifdef CONFIG_MUXERS -static AVOutputFormat dv_muxer = { +#endif +#ifdef CONFIG_DV_MUXER +AVOutputFormat dv_muxer = { "dv", "DV video format", NULL, @@ -1026,12 +1027,3 @@ static AVOutputFormat dv_muxer = { dv_write_trailer, }; #endif - -int ff_dv_init(void) -{ - av_register_input_format(&dv_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&dv_muxer); -#endif - return 0; -} |