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

Michael Niedermayer git at videolan.org
Fri Jun 10 15:56:43 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jun 10 15:38:26 2016 +0200| [24f513619680b5bef40b02db6ca07a8a009c2ece] | 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>

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

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

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 3529165..80d5386 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