aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-07 11:56:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-11 22:28:24 +0200
commitab95338a20b20a77d7f699812a6148dbed1debda (patch)
tree9e90d18e63686de9312eae113b4d4201e1eb7d11
parentb561dafd561cd8bff1f0ba89e49badf16654d0f2 (diff)
downloadffmpeg-ab95338a20b20a77d7f699812a6148dbed1debda.tar.gz
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@outlook.com>
-rw-r--r--libavcodec/mpeg4video_parser.c1
1 files changed, 0 insertions, 1 deletions
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);