From ab95338a20b20a77d7f699812a6148dbed1debda Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 7 Oct 2023 11:56:18 +0200 Subject: [PATCH] avcodec/mpeg4video_parser: Don't set write-only current_picture_ptr It is unused by ff_mpeg4_decode_picture_header() (unsurprisingly given that when decoding this function is called before the context has been initialized). Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4video_parser.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c index 28353aa146..402594e01d 100644 --- a/libavcodec/mpeg4video_parser.c +++ b/libavcodec/mpeg4video_parser.c @@ -89,7 +89,6 @@ static int mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx, int ret; s->avctx = avctx; - s->current_picture_ptr = &s->current_picture; if (avctx->extradata_size && pc->first_picture) { init_get_bits(gb, avctx->extradata, avctx->extradata_size * 8);