changeset 17913:f000129a16b3

10l, checking for NULL after dereferencing makes no sense (though what is this check for anyway?)
author reimar
date Wed, 22 Mar 2006 12:23:55 +0000
parents 86d341ecb3bc
children f9cb6fc1608a
files libmpdemux/demux_pva.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_pva.c	Wed Mar 22 11:26:27 2006 +0000
+++ b/libmpdemux/demux_pva.c	Wed Mar 22 12:23:55 2006 +0000
@@ -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);