Commit 345b9c41 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: fix master track selection with nonseekable

(otherwise drops packets)
parent cb669602
......@@ -1331,13 +1331,17 @@ static int Demux_UnSeekable( demux_t *p_demux )
b |= b_extra;
}
if( b && tk->i_cat == VIDEO_ES )
{
p_stream_master = tk;
}
else if( b )
if( b )
{
p_stream_master = tk;
if( tk->i_cat == VIDEO_ES )
{
p_stream_master = tk;
break;
}
else if( !tk )
{
p_stream_master = tk;
}
}
}
......
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