}
/* */
- p_data = stream_Block( p_demux->s, fh.i_length );
+ if( ( p_data = stream_Block( p_demux->s, fh.i_length ) ) == NULL )
+ return 0;
+
p_data->i_dts = (int64_t)fh.i_timecode * 1000;
p_data->i_pts = (fh.i_type == 'V') ? 0 : p_data->i_dts;
{
p_kfa_table = malloc( fh.i_length );
- if( p_seek_table == NULL )
+ if( p_kfa_table == NULL )
{
free( p_seek_table );
return VLC_ENOMEM;