]> git.sesse.net Git - vlc/commitdiff
demux: avi: don't probe end if not seekable
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 21 Jul 2014 16:03:19 +0000 (01:03 +0900)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 23 Jul 2014 04:14:08 +0000 (13:14 +0900)
modules/demux/avi/avi.c

index d1a6b896f6788167157a22cb0eeaaca0db53ba92..62afc67c08ef0cf07e390ca40ce7f6ed6cc1e169 100644 (file)
@@ -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 ) )