[vlc-commits] demux: avi: fix non seekable chunk loop

Francois Cartegnie git at videolan.org
Wed Jul 16 06:49:33 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 16 13:29:29 2014 +0900| [bedeabba63920776dcb480803ffce3d4719ff446] | committer: Francois Cartegnie

demux: avi: fix non seekable chunk loop

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

 modules/demux/avi/libavi.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/demux/avi/libavi.c b/modules/demux/avi/libavi.c
index c8a1eff..075d7d9 100644
--- a/modules/demux/avi/libavi.c
+++ b/modules/demux/avi/libavi.c
@@ -142,10 +142,9 @@ static int AVI_ChunkRead_list( stream_t *s, avi_chunk_t *p_container )
     {
         msg_Dbg( (vlc_object_t*)s, "skipping movi chunk" );
         if( b_seekable )
-        {
             return AVI_NextChunk( s, p_container );
-        }
-        return VLC_SUCCESS; /* point at begining of LIST-movi */
+        else
+            return VLC_EGENERIC; /* point at begining of LIST-movi */
     }
 
     if( stream_Read( s, NULL, 12 ) != 12 )



More information about the vlc-commits mailing list