Commit b27ac355 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 61b1d85c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment