aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-10 15:38:26 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-08-23 13:15:16 +0200
commitec704dc779be65d73c36e17c7984f807b80c8599 (patch)
treeafd8d727355def796d2acb13209c825d5295d0f6
parentff2df4056cff29ac8b20b9b6a7533347d5d9f0bd (diff)
downloadffmpeg-ec704dc779be65d73c36e17c7984f807b80c8599.tar.gz
avcodec/mpegvideo: Do not clear the parse context during init
It is allocated before, this cannot work Fixes Ticket5613 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 24f513619680b5bef40b02db6ca07a8a009c2ece) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 645d757fbd..743e7a2117 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1313,9 +1313,7 @@ static void clear_context(MpegEncContext *s)
s->b_scratchpad =
s->obmc_scratchpad = NULL;
- s->parse_context.buffer = NULL;
- s->parse_context.buffer_size = 0;
- s->parse_context.overread = 0;
+
s->bitstream_buffer = NULL;
s->allocated_bitstream_buffer_size = 0;
s->picture = NULL;