Commit 94568687 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: avi: don't probe end if not seekable

parent 99ddaf5a
...@@ -1079,7 +1079,7 @@ static int Demux_Seekable( demux_t *p_demux ) ...@@ -1079,7 +1079,7 @@ static int Demux_Seekable( demux_t *p_demux )
/* no valid index, we will parse directly the stream /* no valid index, we will parse directly the stream
* in case we fail we will disable all finished stream */ * in case we fail we will disable all finished stream */
if( p_sys->i_movi_lastchunk_pos >= p_sys->i_movi_begin + 12 ) if( p_sys->b_seekable && p_sys->i_movi_lastchunk_pos >= p_sys->i_movi_begin + 12 )
{ {
stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos ); stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
if( AVI_PacketNext( p_demux ) ) if( AVI_PacketNext( p_demux ) )
......
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