vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Jul 22 
01:03:19 2014 +0900| [94568687c4ee70c12b0a5f523a7ba040ea03a018] | committer: 
Francois Cartegnie

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94568687c4ee70c12b0a5f523a7ba040ea03a018
---

 modules/demux/avi/avi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index d1a6b89..62afc67 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -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 ) )

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to