[FFmpeg-cvslog] avcodec/av1_parser: don't set AVCodecContext frame dimensions
James Almer
git at videolan.org
Sat Sep 12 19:51:12 EEST 2020
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Sep 9 15:40:07 2020 -0300| [5a562f518f3a3fdcf5fe5804c3a63dc95696da28] | committer: James Almer
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a562f518f3a3fdcf5fe5804c3a63dc95696da28
---
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}));
More information about the ffmpeg-cvslog
mailing list