Browse Source

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
tags/v0.5
David Conrad Guillaume Poirier 19 years ago
parent
commit
2064c77ab9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/avidec.c

+ 1
- 1
libavformat/avidec.c View File

@@ -243,7 +243,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
#endif #endif
if (tag1 == MKTAG('m', 'o', 'v', 'i')) { if (tag1 == MKTAG('m', 'o', 'v', 'i')) {
avi->movi_list = url_ftell(pb) - 4; 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); else avi->movi_end = url_fsize(pb);
#ifdef DEBUG #ifdef DEBUG
printf("movi end=%Lx\n", avi->movi_end); printf("movi end=%Lx\n", avi->movi_end);


Loading…
Cancel
Save