Commit 6f197288 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [19064]

  matroska crash. don't use block, in case when it can be ( block || simpleblock)
parent 7e1beb39
......@@ -1886,12 +1886,12 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
if( i_track >= p_segment->tracks.size() )
{
msg_Err( p_demux, "invalid track number=%d", block->TrackNum() );
msg_Err( p_demux, "invalid track number" );
return;
}
if( tk->fmt.i_cat != NAV_ES && tk->p_es == NULL )
{
msg_Err( p_demux, "unknown track number=%d", block->TrackNum() );
msg_Err( p_demux, "unknown track number" );
return;
}
if( i_pts + i_duration < p_sys->i_start_pts && tk->fmt.i_cat == AUDIO_ES )
......
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