Commit daacb8a7 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: fix infinite loop

parent 9c72159c
...@@ -1036,7 +1036,7 @@ static int Demux_Seekable( demux_t *p_demux ) ...@@ -1036,7 +1036,7 @@ static int Demux_Seekable( demux_t *p_demux )
{ {
for( i = 0; i < p_sys->i_track; i++ ) for( i = 0; i < p_sys->i_track; i++ )
{ {
if( toread[i].b_ok ) if( toread[i].b_ok && toread[i].i_toread >= 0 )
return VLC_DEMUXER_SUCCESS; return VLC_DEMUXER_SUCCESS;
} }
msg_Warn( p_demux, "all tracks have failed, exiting..." ); msg_Warn( p_demux, "all tracks have failed, exiting..." );
......
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