changeset 2681:663dca3aa1d9 libavcodec

preserve parse context
author michael
date Sat, 14 May 2005 15:34:49 +0000
parents 1a6192e0b1f9
children dfa4d2773d13
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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))