diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-11 15:10:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-11 15:10:15 +0200 |
commit | 5303a644f5889bfda2bf3d7abf17ab9c23104586 (patch) | |
tree | 73da62b9ce5684a4dd4c712225c993f75b339ff5 /libavformat/img2dec.c | |
parent | ea7ebadeb78c76ff14a85982d22fe4976aee3fbd (diff) | |
download | ffmpeg-5303a644f5889bfda2bf3d7abf17ab9c23104586.tar.gz |
avformat/img2: Make AVOptions available to img* demuxers defined in other files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index a82f50f5fa..8bbcddcc9d 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -503,7 +503,7 @@ static int img_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp #define OFFSET(x) offsetof(VideoDemuxData, x) #define DEC AV_OPT_FLAG_DECODING_PARAM -static const AVOption options[] = { +const AVOption ff_img_options[] = { { "framerate", "set the video framerate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, 0, DEC }, { "loop", "force loop over input file sequence", OFFSET(loop), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, DEC }, @@ -528,7 +528,7 @@ static const AVOption options[] = { static const AVClass img2_class = { .class_name = "image2 demuxer", .item_name = av_default_item_name, - .option = options, + .option = ff_img_options, .version = LIBAVUTIL_VERSION_INT, }; AVInputFormat ff_image2_demuxer = { @@ -548,7 +548,7 @@ AVInputFormat ff_image2_demuxer = { static const AVClass img2pipe_class = { .class_name = "image2pipe demuxer", .item_name = av_default_item_name, - .option = options, + .option = ff_img_options, .version = LIBAVUTIL_VERSION_INT, }; AVInputFormat ff_image2pipe_demuxer = { @@ -681,7 +681,7 @@ static int webp_probe(AVProbeData *p) static const AVClass imgname ## _class = {\ .class_name = AV_STRINGIFY(imgname) " demuxer",\ .item_name = av_default_item_name,\ - .option = options,\ + .option = ff_img_options,\ .version = LIBAVUTIL_VERSION_INT,\ };\ AVInputFormat ff_image_ ## imgname ## _pipe_demuxer = {\ |