mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-07-16 17:31:39 +02:00
Merge commit '704d2bd18be8f134cb9ab19463a3c4eb63233dbd'
* commit '704d2bd18be8f134cb9ab19463a3c4eb63233dbd':
mov: Print reason of loci parsing failure
See 9e4f0cfc8f
Merged-by: Clément Bœsch <clement@stupeflix.com>
This commit is contained in:
commit
9c4af99583
@ -243,7 +243,8 @@ static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len)
|
|||||||
len -= 1;
|
len -= 1;
|
||||||
|
|
||||||
if (len < 12) {
|
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;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
longitude = ((int32_t) avio_rb32(pb)) / (float) (1 << 16);
|
longitude = ((int32_t) avio_rb32(pb)) / (float) (1 << 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user