Mercurial > libavformat.hg
changeset 1286:8b423c6ae233 libavformat
Fix for AVI files with odd sized 'movi' list
Patch by David Conrad <davedc_@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
author | gpoirier |
---|---|
date | Thu, 31 Aug 2006 09:43:29 +0000 |
parents | b5226e679a31 |
children | eb0a8abb507c |
files | avidec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Wed Aug 30 21:18:17 2006 +0000 +++ b/avidec.c Thu Aug 31 09:43:29 2006 +0000 @@ -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);