Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-16 14:51:18 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-05-16 22:36:48 +0300
commitb58cbb07bca41b1e2a3698a509df1dc8a86bd11d (patch)
tree53f9a6e8209bd238aaee6de2b8fb70599be7f2a7
parentdd9789ab6d751ec74986c24cdcf5f1b816a7d06a (diff)
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 1e66c246a3..d130597ab0 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;
}