diff options
author | James Almer <jamrial@gmail.com> | 2020-09-09 15:40:07 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-09-12 13:10:16 -0300 |
commit | 5a562f518f3a3fdcf5fe5804c3a63dc95696da28 (patch) | |
tree | d3ca8067ce67e3859cb5ccb5ad47c867eba8de61 /libavcodec/av1_parser.c | |
parent | 47be5a505657f478636ff08cef45f5c4c201ad23 (diff) |
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 <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1_parser.c')
-rw-r--r-- | libavcodec/av1_parser.c | 6 |
1 files changed, 0 insertions, 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})); |