# HG changeset patch # User michael # Date 1116084889 0 # Node ID 663dca3aa1d9bd1d3706453823ce50071e9d61dc # Parent 1a6192e0b1f9d82842a8c98b40ee99a353505d84 preserve parse context diff -r 1a6192e0b1f9 -r 663dca3aa1d9 mpeg12.c --- a/mpeg12.c Sat May 14 00:04:11 2005 +0000 +++ b/mpeg12.c Sat May 14 15:34:49 2005 +0000 @@ -2083,7 +2083,10 @@ { 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))