Commit 29cfd497 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: fix fwd null (cid #1408972)

on failed alloc of 0 payload size
parent 44019727
......@@ -4248,7 +4248,7 @@ static int FragDemuxTrack( demux_t *p_demux, mp4_track_t *p_track,
block_t *p_block = vlc_stream_Block( p_demux->s, len );
uint32_t i_read = ( p_block ) ? p_block->i_buffer : 0;
p_track->context.i_trun_sample_pos += i_read;
if( i_read < len )
if( i_read < len || p_block == NULL )
{
free( p_block );
return VLC_DEMUXER_EOF;
......
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