diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-10 15:38:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-10 15:54:20 +0200 |
commit | 24f513619680b5bef40b02db6ca07a8a009c2ece (patch) | |
tree | 7a600aa6b5224bbb4c5a7e69c3d5cac63aa1870f | |
parent | e616e9a4b8fde2686fcd283be3929eee3fb2be91 (diff) | |
download | ffmpeg-24f513619680b5bef40b02db6ca07a8a009c2ece.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>
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 3529165f2a..80d5386ad0 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -822,9 +822,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; |