aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-08-29 21:17:16 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-08-31 15:24:56 +0200
commit87e5d8d78cf08b54b4a9e7cbaeff89f8c1d91b78 (patch)
tree37c6830a9ce71ef0fca53c052f3526eb274c8d20
parent9a003fc38833b6b9f08e44d7f1c6539db65840a0 (diff)
downloadffmpeg-87e5d8d78cf08b54b4a9e7cbaeff89f8c1d91b78.tar.gz
ismindex: Use the correct abs() version
-rw-r--r--tools/ismindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index f3bfec0a96..71bb36bf53 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -375,7 +375,7 @@ static int read_tfra(struct Tracks *tracks, int start_index, AVIOContext *f)
// Now try and read the actual durations from the trun sample data.
for (i = 0; i < track->chunks; i++) {
int64_t duration = read_moof_duration(f, track->offsets[i].offset);
- if (duration > 0 && abs(duration - track->offsets[i].duration) > 3) {
+ if (duration > 0 && llabs(duration - track->offsets[i].duration) > 3) {
// 3 allows for integer duration to drift a few units,
// e.g., for 1/3 durations
track->offsets[i].duration = duration;