[FFmpeg-cvslog] avcodec/mpegvideo: Do not clear the parse context during init

Michael Niedermayer git at videolan.org
Sat Aug 13 16:30:01 EEST 2016


ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Fri Jun 10 15:38:26 2016 +0200| [679e869496ede3cd17369b46e815d3a47458cab4] | committer: Michael Niedermayer

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 at niedermayer.cc>
(cherry picked from commit 24f513619680b5bef40b02db6ca07a8a009c2ece)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/mpegvideo.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 798b517..f660a1c 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;



More information about the ffmpeg-cvslog mailing list