diff mpeg12.c @ 2681:663dca3aa1d9 libavcodec

preserve parse context
author michael
date Sat, 14 May 2005 15:34:49 +0000
parents 8e9afac9896b
children b71d3566fc6d
line wrap: on
line diff
--- 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))