aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-11 15:10:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-11 15:10:59 +0200
commit646d663f71375609af6932734a493057d012ef3a (patch)
treeb9613d2138ad055f49f64f550bcd6de0b4d47618
parent5303a644f5889bfda2bf3d7abf17ab9c23104586 (diff)
downloadffmpeg-646d663f71375609af6932734a493057d012ef3a.tar.gz
avformat/img2_brender_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_brender_pix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/img2_brender_pix.c b/libavformat/img2_brender_pix.c
index f7306267c4..e13c132830 100644
--- a/libavformat/img2_brender_pix.c
+++ b/libavformat/img2_brender_pix.c
@@ -38,6 +38,13 @@ static int aliaspix_read_probe(AVProbeData *p)
return AVPROBE_SCORE_MAX-10;
}
+static const AVClass image2_brender_pix_class = {
+ .class_name = "brender_pix demuxer",
+ .item_name = av_default_item_name,
+ .option = ff_img_options,
+ .version = LIBAVUTIL_VERSION_INT,
+};
+
AVInputFormat ff_image2_brender_pix_demuxer = {
.name = "brender_pix",
.long_name = NULL_IF_CONFIG_SMALL("BRender PIX image"),
@@ -46,4 +53,5 @@ AVInputFormat ff_image2_brender_pix_demuxer = {
.read_header = ff_img_read_header,
.read_packet = ff_img_read_packet,
.raw_codec_id = AV_CODEC_ID_BRENDER_PIX,
+ .priv_class = &image2_brender_pix_class,
};