Commit 999f5164 authored by gpoirier's avatar gpoirier

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6140 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d2e13408
......@@ -243,7 +243,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
#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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment