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/img.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/img.c')
-rw-r--r-- | libavformat/img.c | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/libavformat/img.c b/libavformat/img.c index fe00cdc420..047113bb68 100644 --- a/libavformat/img.c +++ b/libavformat/img.c @@ -339,8 +339,8 @@ static int img_write_trailer(AVFormatContext *s) } /* input */ - -static AVInputFormat image_demuxer = { +#ifdef CONFIG_IMAGE_DEMUXER +AVInputFormat image_demuxer = { "image", "image sequence", sizeof(VideoData), @@ -352,8 +352,9 @@ static AVInputFormat image_demuxer = { NULL, AVFMT_NOFILE | AVFMT_NEEDNUMBER, }; - -static AVInputFormat imagepipe_demuxer = { +#endif +#ifdef CONFIG_IMAGEPIPE_DEMUXER +AVInputFormat imagepipe_demuxer = { "imagepipe", "piped image sequence", sizeof(VideoData), @@ -363,11 +364,11 @@ static AVInputFormat imagepipe_demuxer = { img_read_close, NULL, }; - +#endif /* output */ - -static AVOutputFormat image_muxer = { +#ifdef CONFIG_IMAGE_MUXER +AVOutputFormat image_muxer = { "image", "image sequence", "", @@ -381,8 +382,9 @@ static AVOutputFormat image_muxer = { AVFMT_NOFILE | AVFMT_NEEDNUMBER | AVFMT_RAWPICTURE, img_set_parameters, }; - -static AVOutputFormat imagepipe_muxer = { +#endif +#ifdef CONFIG_IMAGEPIPE_MUXER +AVOutputFormat imagepipe_muxer = { "imagepipe", "piped image sequence", "", @@ -396,14 +398,4 @@ static AVOutputFormat imagepipe_muxer = { AVFMT_RAWPICTURE, img_set_parameters, }; - -int img_init(void) -{ - av_register_input_format(&image_demuxer); - av_register_output_format(&image_muxer); - - av_register_input_format(&imagepipe_demuxer); - av_register_output_format(&imagepipe_muxer); - - return 0; -} +#endif |