diff options
author | Clément Bœsch <clement@stupeflix.com> | 2016-06-24 10:44:57 +0200 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2016-06-24 10:45:57 +0200 |
commit | 9c4af99583a11354c005f10d095232ff1a4276c4 (patch) | |
tree | b9a951c7ef240f0aeb0512a3147d6d30364ca388 /libavformat | |
parent | 6dd80591b88356ac633c9f6dc2d5d1d6a220550a (diff) | |
parent | 704d2bd18be8f134cb9ab19463a3c4eb63233dbd (diff) |
Merge commit '704d2bd18be8f134cb9ab19463a3c4eb63233dbd'
* commit '704d2bd18be8f134cb9ab19463a3c4eb63233dbd':
mov: Print reason of loci parsing failure
See 9e4f0cfc8ff4ab635ea12bdbd8d85d8bb1ba25f9
Merged-by: Clément Bœsch <clement@stupeflix.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 712629520a..c7caf80b11 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -243,7 +243,8 @@ static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len) len -= 1; if (len < 12) { - av_log(c->fc, AV_LOG_ERROR, "no space for coordinates left (%d)\n", len); + av_log(c->fc, AV_LOG_ERROR, + "loci too short (%u bytes left, need at least %d)\n", len, 12); return AVERROR_INVALIDDATA; } longitude = ((int32_t) avio_rb32(pb)) / (float) (1 << 16); |