Commit 50393bce authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: Fix parsing short loci

Fixes Ticket4557
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9e4f0cfc
......@@ -229,7 +229,7 @@ static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len)
avio_skip(pb, 1); // role
len -= 1;
if (len < 14) {
if (len < 12) {
av_log(c->fc, AV_LOG_ERROR, "no space for coordinates left (%d)\n", len);
return AVERROR_INVALIDDATA;
}
......
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