avformat/mov: Fix parsing short loci
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 16 May 2015 11:51:18 +0000 (13:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 16 May 2015 12:07:15 +0000 (14:07 +0200)
Fixes Ticket4557

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index 48f5f3e..3d8cbe9 100644 (file)
@@ -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;
     }