diff options
author | David Conrad <lessen42@gmail.com> | 2006-08-31 09:43:29 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2006-08-31 09:43:29 +0000 |
commit | 2064c77ab964eb474043ad48ff685772e904f506 (patch) | |
tree | 11c29ef094fb04057632eb56dace120b9dec3476 /libavformat/avidec.c | |
parent | 74691b7bcb0f3a0e4fb3e15dcc1a3270237079b7 (diff) | |
download | ffmpeg-2064c77ab964eb474043ad48ff685772e904f506.tar.gz |
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
Originally committed as revision 6140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 21d5019029..8744be685a 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -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); |