aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-10 15:38:26 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-15 18:54:34 +0200
commited7fe48445c78ce6b9c68f76b6d3973edf016e44 (patch)
tree7819f67683d2a6d46997da33a455341fcc9a7e77
parentd9ad05abce33933746cc81a1720e9e738d4ab96c (diff)
downloadffmpeg-ed7fe48445c78ce6b9c68f76b6d3973edf016e44.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 e067fc2cd1..29d11c542e 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -813,9 +813,7 @@ static void clear_context(MpegEncContext *s)
s->sc.b_scratchpad =
s->sc.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;