[Ffmpeg-cvslog] r6140 - trunk/libavformat/avidec.c

gpoirier subversion
Thu Aug 31 11:43:29 CEST 2006


Author: gpoirier
Date: Thu Aug 31 11:43:29 2006
New Revision: 6140

Modified:
   trunk/libavformat/avidec.c

Log:
Fix for AVI files with odd sized 'movi' list
Patch by David Conrad <davedc_ at umbc.edu>
Original thread:
Date: Wed, 30 Aug 2006 15:12:35 -0400
Subject: [Ffmpeg-devel] [PATCH] Fix for AVI files with odd sized 'movi' list


Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Thu Aug 31 11:43:29 2006
@@ -243,7 +243,7 @@
 #endif
             if (tag1 == MKTAG('m', 'o', 'v', 'i')) {
                 avi->movi_list = url_ftell(pb) - 4;
-                if(size) avi->movi_end = avi->movi_list + size;
+                if(size) avi->movi_end = avi->movi_list + size + (size & 1);
                 else     avi->movi_end = url_fsize(pb);
 #ifdef DEBUG
                 printf("movi end=%Lx\n", avi->movi_end);




More information about the ffmpeg-cvslog mailing list