]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/av1_parser: don't set AVCodecContext frame dimensions
authorJames Almer <jamrial@gmail.com>
Wed, 9 Sep 2020 18:40:07 +0000 (15:40 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 12 Sep 2020 16:10:16 +0000 (13:10 -0300)
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 <jamrial@gmail.com>
libavcodec/av1_parser.c

index 0b8af8aecf56f492ad1906abcb98337b20e76533..14826d816e84593274e41fbbf47b6e638e75a83c 100644 (file)
@@ -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}));