[FFmpeg-cvslog] avcodec/mpeg4video_parser: Don't set write-only current_picture_ptr

Andreas Rheinhardt git at videolan.org
Wed Oct 11 23:37:59 EEST 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Oct  7 11:56:18 2023 +0200| [ab95338a20b20a77d7f699812a6148dbed1debda] | committer: Andreas Rheinhardt

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 <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab95338a20b20a77d7f699812a6148dbed1debda
---

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



More information about the ffmpeg-cvslog mailing list