Commit 6968dd26 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: fix incremental chunk reads (fix #18693)

parent 85f0e45b
......@@ -1104,13 +1104,14 @@ static int Demux_Seekable( demux_t *p_demux )
if( toread[i].i_toread >= 0 )
{
b_done = false; /* not yet finished */
}
if( toread[i].i_posf > 0 )
{
if( i_pos == -1 || i_pos > toread[i].i_posf )
if( toread[i].i_posf > 0 )
{
i_track = i;
i_pos = toread[i].i_posf;
if( i_pos == -1 || i_pos > toread[i].i_posf )
{
i_track = i;
i_pos = toread[i].i_posf;
}
}
}
}
......
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