From 5a562f518f3a3fdcf5fe5804c3a63dc95696da28 Mon Sep 17 00:00:00 2001 From: James Almer Date: Wed, 9 Sep 2020 15:40:07 -0300 Subject: [PATCH] avcodec/av1_parser: don't set AVCodecContext frame dimensions Let the internal decoder take care of it, as frame reordering may result in different values exported by either module. Signed-off-by: James Almer --- libavcodec/av1_parser.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c index 0b8af8aecf..14826d816e 100644 --- a/libavcodec/av1_parser.c +++ b/libavcodec/av1_parser.c @@ -163,12 +163,6 @@ static int av1_parser_parse(AVCodecParserContext *ctx, avctx->color_trc = (enum AVColorTransferCharacteristic) color->transfer_characteristics; avctx->color_range = color->color_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG; - if (ctx->width != avctx->width || ctx->height != avctx->height) { - ret = ff_set_dimensions(avctx, ctx->width, ctx->height); - if (ret < 0) - goto end; - } - if (avctx->framerate.num) avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1}));