Commit b0d898ab authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 94568687c4ee70c12b0a5f523a7ba040ea03a018)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 28f0a772
......@@ -1079,7 +1079,7 @@ static int Demux_Seekable( demux_t *p_demux )
/* no valid index, we will parse directly the 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 );
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