diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-11 15:34:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-11 15:34:13 +0200 |
commit | de4a4ca1a08d30afa7f0abb94ee5f31edee3001f (patch) | |
tree | 4be42fb00dcf53c9fb050c8ba2777bdcee245413 | |
parent | 8b4714614f8bb85a6edd1e96bccda2bd1176e588 (diff) | |
download | ffmpeg-de4a4ca1a08d30afa7f0abb94ee5f31edee3001f.tar.gz |
avformat/img2_alias_pix: Add AVClass and image2 AVOptions
This fixes the default timebase and allows overriding the framerate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/img2_alias_pix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/img2_alias_pix.c b/libavformat/img2_alias_pix.c index e1654f3590..c2650ad1b3 100644 --- a/libavformat/img2_alias_pix.c +++ b/libavformat/img2_alias_pix.c @@ -54,6 +54,13 @@ static int alias_pix_read_probe(AVProbeData *p) return AVPROBE_SCORE_EXTENSION + 1; } +static const AVClass image2_alias_pix_class = { + .class_name = "alias_pix demuxer", + .item_name = av_default_item_name, + .option = ff_img_options, + .version = LIBAVUTIL_VERSION_INT, +}; + AVInputFormat ff_image2_alias_pix_demuxer = { .name = "alias_pix", .long_name = NULL_IF_CONFIG_SMALL("Alias/Wavefront PIX image"), @@ -62,4 +69,5 @@ AVInputFormat ff_image2_alias_pix_demuxer = { .read_header = ff_img_read_header, .read_packet = ff_img_read_packet, .raw_codec_id = AV_CODEC_ID_ALIAS_PIX, + .priv_class = &image2_alias_pix_class, }; |