[Mplayer-cvslog] CVS: main/libmpcodecs vd_libmpeg2.c,1.33,1.34

Sascha Sommer CVS syncmail at mplayerhq.hu
Thu Aug 26 12:34:22 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv31106/libmpcodecs

Modified Files:
	vd_libmpeg2.c 
Log Message:
some more segfault fixes

Index: vd_libmpeg2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_libmpeg2.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- vd_libmpeg2.c	25 Aug 2004 16:29:21 -0000	1.33
+++ vd_libmpeg2.c	26 Aug 2004 10:34:20 -0000	1.34
@@ -103,6 +103,11 @@
     mp_image_t* mpi=NULL;
     int drop_frame, framedrop=flags&3;
 
+    //MPlayer registers its own draw_slice callback, prevent libmpeg2 from freeing the context
+    mpeg2dec->decoder.convert=NULL;
+    mpeg2dec->decoder.convert_id=NULL;
+   
+    
     if(len<=0) return NULL; // skipped null frame
     
     // append extra 'end of frame' code:




More information about the MPlayer-cvslog mailing list