10l, checking for NULL after dereferencing makes no sense (though what is this check for anyway?)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17914 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-03-22 12:23:55 +00:00
parent 466e56e97c
commit 528ec79cc2
1 changed files with 2 additions and 1 deletions

View File

@ -283,7 +283,7 @@ int pva_get_payload(demuxer_t * d,pva_payload_t * payload)
#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 @@ int pva_get_payload(demuxer_t * d,pva_payload_t * payload)
return 0;
}
priv = (pva_priv_t *)d->priv;
d->filepos=stream_tell(d->stream);