[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpeg12.c,1.237,1.238

Michael Niedermayer CVS michael
Sat May 14 17:34:52 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv3241

Modified Files:
	mpeg12.c 
Log Message:
preserve parse context


Index: mpeg12.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpeg12.c,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -d -r1.237 -r1.238
--- mpeg12.c	12 May 2005 10:15:19 -0000	1.237
+++ mpeg12.c	14 May 2005 15:34:49 -0000	1.238
@@ -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))





More information about the ffmpeg-cvslog mailing list