[FFmpeg-cvslog] movdec: Fix parsing of a very last empty atom of size 8.

Michael Niedermayer git at videolan.org
Mon Dec 5 21:14:51 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec  5 18:04:19 2011 +0100| [b27ac355b7045e013c4be3eface4d76cf522b835] | committer: Michael Niedermayer

movdec: Fix parsing of a very last empty atom of size 8.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b27ac355b7045e013c4be3eface4d76cf522b835
---

 libavformat/mov.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index db667e9..4790200 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -307,7 +307,7 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 
     if (atom.size < 0)
         atom.size = INT64_MAX;
-    while (total_size + 8 < atom.size && !url_feof(pb)) {
+    while (total_size + 8 <= atom.size && !url_feof(pb)) {
         int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
         a.size = atom.size;
         a.type=0;



More information about the ffmpeg-cvslog mailing list