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 d1a6b89..62afc67 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 ) )