[MPlayer-cvslog] CVS: main/libmpdemux demux_pva.c,1.10,1.11

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Mar 22 13:23:57 CET 2006


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	demux_pva.c 
Log Message:
10l, checking for NULL after dereferencing makes no sense (though what is this check for anyway?)


Index: demux_pva.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_pva.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- demux_pva.c	17 Feb 2006 01:57:40 -0000	1.10
+++ demux_pva.c	22 Mar 2006 12:23:55 -0000	1.11
@@ -283,7 +283,7 @@
 #ifndef PVA_NEW_PREBYTES_CODE
 	demux_packet_t * dp; 	//hack to deliver the preBytes (see PVA doc)
 #endif
-	pva_priv_t * priv=(pva_priv_t *) d->priv;
+	pva_priv_t * priv;
 
 	
 	if(d==NULL)
@@ -292,6 +292,7 @@
 		return 0;
 	}
 
+	priv = (pva_priv_t *)d->priv;
 	d->filepos=stream_tell(d->stream);
 	
 	




More information about the MPlayer-cvslog mailing list