diff mbox series

[FFmpeg-devel,8/8] avcodec/mpeg4video_parser: Don't set write-only current_picture_ptr

Message ID DU0P250MB074735031840B5D783271F218FC8A@DU0P250MB0747.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit ab95338a20b20a77d7f699812a6148dbed1debda
Headers show
Series [FFmpeg-devel,1/7] avcodec/wmv2dec: Parse extradata during init | expand

Commit Message

Andreas Rheinhardt Oct. 7, 2023, 10:16 a.m. UTC
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 <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpeg4video_parser.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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);