Browse Source

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 24f5136196)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.4.14
Michael Niedermayer 9 years ago
parent
commit
ec704dc779
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/mpegvideo.c

+ 1
- 3
libavcodec/mpegvideo.c View File

@@ -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;


Loading…
Cancel
Save