[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.126,1.127

Roberto Togni CVS syncmail at mplayerhq.hu
Sun Jun 6 15:48:32 CEST 2004


CVS change done by Roberto Togni CVS

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

Modified Files:
	vd_ffmpeg.c 
Log Message:
Segfault fix for some h264 in avi files
Patch by adland


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -r1.126 -r1.127
--- vd_ffmpeg.c	11 Apr 2004 20:01:42 -0000	1.126
+++ vd_ffmpeg.c	6 Jun 2004 13:48:30 -0000	1.127
@@ -644,7 +644,7 @@
   }
 
 	// Palette support: free palette buffer allocated in get_buffer
-	if ((mpi->bpp == 8) && (mpi->planes[1] != NULL))
+	if ( mpi && (mpi->bpp == 8) && (mpi->planes[1] != NULL))
 		free(mpi->planes[1]);
 
 #if LIBAVCODEC_BUILD >= 4644




More information about the MPlayer-cvslog mailing list