aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-09-07 12:27:21 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-09-07 12:27:21 +0200
commit84cca0644a6157feac74d24a600249986e87e147 (patch)
tree0fa9b1ddf14b68dd6c33be2e16d27eba7ae03de7
parentb8346b22942c5738c9cd13f0969f3e4ad52578b8 (diff)
parent87e5d8d78cf08b54b4a9e7cbaeff89f8c1d91b78 (diff)
downloadffmpeg-84cca0644a6157feac74d24a600249986e87e147.tar.gz
Merge commit '87e5d8d78cf08b54b4a9e7cbaeff89f8c1d91b78'
* commit '87e5d8d78cf08b54b4a9e7cbaeff89f8c1d91b78': ismindex: Use the correct abs() version Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r--tools/ismindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index 8636c966e8..dfef118653 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -378,7 +378,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;