Commit 83b477d2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

nuv demux: NULL dereferencing (CID 37)

parent 95fc63a2
...@@ -385,7 +385,9 @@ static int Demux( demux_t *p_demux ) ...@@ -385,7 +385,9 @@ static int Demux( demux_t *p_demux )
} }
/* */ /* */
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_dts = (int64_t)fh.i_timecode * 1000;
p_data->i_pts = (fh.i_type == 'V') ? 0 : p_data->i_dts; p_data->i_pts = (fh.i_type == 'V') ? 0 : p_data->i_dts;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment