[FFmpeg-devel] [PATCH 2/3] avcodec/av1_parser: read frame dimensions directly from AV1RawFrameHeader
James Almer
jamrial at gmail.com
Sun Aug 23 05:02:17 EEST 2020
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/av1_parser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index cd426a2b0f..0a34f20a59 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -127,8 +127,8 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
} else if (!frame->show_frame) {
continue;
} else {
- ctx->width = av1->frame_width;
- ctx->height = av1->frame_height;
+ ctx->width = frame->frame_width;
+ ctx->height = frame->frame_height;
frame_type = frame->frame_type;
ctx->key_frame = frame_type == AV1_FRAME_KEY;
--
2.27.0
More information about the ffmpeg-devel
mailing list