mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
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:
parent
466e56e97c
commit
528ec79cc2
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user