Commit 345b9c41 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: avi: fix master track selection with nonseekable

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