Commit 2b1be1cc authored by Laurent Aimar's avatar Laurent Aimar

Improved eof detection on a few broken avi files.

parent 56e282c3
...@@ -935,7 +935,13 @@ static int Demux_Seekable( demux_t *p_demux ) ...@@ -935,7 +935,13 @@ static int Demux_Seekable( demux_t *p_demux )
if( b_done ) if( b_done )
{ {
return( 1 ); for( i = 0; i < p_sys->i_track; i++ )
{
if( toread[i].b_ok )
return 1;
}
msg_Warn( p_demux, "all tracks have failed, exiting..." );
return 0;
} }
if( i_pos == -1 ) if( i_pos == -1 )
......
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