Browse Source

preserve parse context

Originally committed as revision 4241 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
89ba9eede9
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/mpeg12.c

+ 3
- 0
libavcodec/mpeg12.c View File

@@ -2083,7 +2083,10 @@ static int mpeg_decode_postinit(AVCodecContext *avctx){
{
if (s1->mpeg_enc_ctx_allocated) {
ParseContext pc= s->parse_context;
s->parse_context.buffer=0;
MPV_common_end(s);
s->parse_context= pc;
}

if( (s->width == 0 )||(s->height == 0))


Loading…
Cancel
Save