mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
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>
This commit is contained in:
parent
5303a644f5
commit
646d663f71
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user