aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-16 13:51:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-01 23:25:21 +0200
commit9ce3e804ffae7267716d130dd3e5b3be4a12534f (patch)
treedc3176bff2e0ff66c48fa5ecce028cd1ec31a81a
parentf073ed665107a2955201ada99e1b35c2e592b4f5 (diff)
downloadffmpeg-9ce3e804ffae7267716d130dd3e5b3be4a12534f.tar.gz
avformat/mov: Fix parsing short loci
Fixes Ticket4557 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 50393bce31a5618f5125aaaf97bb69886fc4261d) 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 64135deb0a..aacb6b3ac7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -248,7 +248,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;
}