[MPlayer-cvslog] CVS: main/libmpdemux muxer_mpeg.c,1.39,1.40

Nico Sabbi CVS syncmail at mplayerhq.hu
Sun Mar 12 00:15:59 CET 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv13993

Modified Files:
	muxer_mpeg.c 
Log Message:
check pce_ptr before using it; fixes cid 207

Index: muxer_mpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_mpeg.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- muxer_mpeg.c	12 Feb 2006 11:47:36 -0000	1.39
+++ muxer_mpeg.c	11 Mar 2006 23:15:57 -0000	1.40
@@ -1794,6 +1794,9 @@
 	uint8_t fps, tff, rff; 
 	int period; 
 	
+	if(! pce_ptr)
+		return 0;
+	
 	period = (vpriv->telecine == TELECINE_FILM2PAL) ? 12 : 4;
 	if(fps_ptr != NULL)
 	{
@@ -1829,8 +1832,6 @@
 	if(se_ptr)
 		se_ptr[1] &= 0xf7;
 	
-	if(! pce_ptr)
-		return 0;
 			
 	if(! vpriv->vframes)	//initial value of tff
 		vpriv->trf = (pce_ptr[3] >> 6) & 0x2;




More information about the MPlayer-cvslog mailing list