comparison libmpdemux/demux_pva.c @ 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 b849a99cdc3c
children 5e0bafa6f7e8
comparison
equal deleted inserted replaced
17912:86d341ecb3bc 17913:f000129a16b3
281 off_t next_offset,pva_payload_start; 281 off_t next_offset,pva_payload_start;
282 unsigned char buffer[256]; 282 unsigned char buffer[256];
283 #ifndef PVA_NEW_PREBYTES_CODE 283 #ifndef PVA_NEW_PREBYTES_CODE
284 demux_packet_t * dp; //hack to deliver the preBytes (see PVA doc) 284 demux_packet_t * dp; //hack to deliver the preBytes (see PVA doc)
285 #endif 285 #endif
286 pva_priv_t * priv=(pva_priv_t *) d->priv; 286 pva_priv_t * priv;
287 287
288 288
289 if(d==NULL) 289 if(d==NULL)
290 { 290 {
291 mp_msg(MSGT_DEMUX,MSGL_ERR,"demux_pva: pva_get_payload got passed a NULL pointer!\n"); 291 mp_msg(MSGT_DEMUX,MSGL_ERR,"demux_pva: pva_get_payload got passed a NULL pointer!\n");
292 return 0; 292 return 0;
293 } 293 }
294 294
295 priv = (pva_priv_t *)d->priv;
295 d->filepos=stream_tell(d->stream); 296 d->filepos=stream_tell(d->stream);
296 297
297 298
298 299
299 300