aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-05 18:04:19 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-05 21:13:45 +0100
commitb27ac355b7045e013c4be3eface4d76cf522b835 (patch)
treeb9fbedc5e06dd9c3b0ce5179b970546af0bf329d
parent61b1d85c1f1074d9ce56bb482de99d0f03c7a161 (diff)
downloadffmpeg-b27ac355b7045e013c4be3eface4d76cf522b835.tar.gz
movdec: Fix parsing of a very last empty atom of size 8.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
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;