[vlc-commits] AVI: be less picky about wrong sizes for LIST chunk

Jean-Baptiste Kempf git at videolan.org
Fri May 25 00:44:47 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May 24 13:32:52 2012 +0200| [6809c5dc7670fff8bedd3abdaa8faedd25d39de0] | committer: Jean-Baptiste Kempf

AVI: be less picky about wrong sizes for LIST chunk

Some muxers are unable to read the spec...
(cherry picked from commit 164c7d31939a16674cd5c678e453085af2cbef4c)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/demux/avi/libavi.c b/modules/demux/avi/libavi.c
index d50af46..f4fe083 100644
--- a/modules/demux/avi/libavi.c
+++ b/modules/demux/avi/libavi.c
@@ -114,7 +114,7 @@ static int AVI_ChunkRead_list( stream_t *s, avi_chunk_t *p_container )
     const uint8_t *p_peek;
     bool b_seekable;
 
-    if( p_container->common.i_chunk_size > 0 && p_container->common.i_chunk_size < 8 )
+    if( p_container->common.i_chunk_size > 0 && p_container->common.i_chunk_size < 4 )
     {
         /* empty box */
         msg_Warn( (vlc_object_t*)s, "empty list chunk" );



More information about the vlc-commits mailing list