From b27ac355b7045e013c4be3eface4d76cf522b835 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 5 Dec 2011 18:04:19 +0100 Subject: [PATCH] movdec: Fix parsing of a very last empty atom of size 8. Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index db667e9429..4790200da2 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; -- 2.11.0