diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-22 12:23:55 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-22 12:23:55 +0000 |
commit | 528ec79cc28c02ad25fceb9f4bf69aa6ee2205a7 (patch) | |
tree | 7685004a2e51c667bd00af53f41f84c9d41cd591 /libmpdemux | |
parent | 466e56e97cb7cc754cc78c23da2894f3523597ca (diff) |
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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_pva.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_pva.c b/libmpdemux/demux_pva.c index 419536d3dc..f89b63264f 100644 --- a/libmpdemux/demux_pva.c +++ b/libmpdemux/demux_pva.c @@ -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); |