[vlc-commits] demux: avi: don't probe end if not seekable

Francois Cartegnie git at videolan.org
Sat Jul 26 01:30:25 CEST 2014


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jul 22 01:03:19 2014 +0900| [b0d898abebf291f359b604c268a7cfe90e91ac68] | committer: Jean-Baptiste Kempf

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

(cherry picked from commit 94568687c4ee70c12b0a5f523a7ba040ea03a018)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 ) )



More information about the vlc-commits mailing list