Commit d4c5f2dc authored by Francois Cartegnie's avatar Francois Cartegnie

demux: avi:fix block reading

parent 5e4b6380
......@@ -1027,10 +1027,12 @@ static int Demux_Seekable( demux_t *p_demux )
{
toread[i_track].i_toread = AVI_PTSToByte( tk, i_dpts );
}
else
else if ( i_dpts > -2 * CLOCK_FREQ ) /* don't send a too early dts (low fps video) */
{
toread[i_track].i_toread = AVI_PTSToChunk( tk, i_dpts );
}
else
toread[i_track].i_toread = -1;
}
for( ;; )
......@@ -1052,7 +1054,7 @@ static int Demux_Seekable( demux_t *p_demux )
continue;
}
if( toread[i].i_toread > 0 )
if( toread[i].i_toread >= 0 )
{
b_done = false; /* not yet finished */
}
......
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