OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a003fc
)
ismindex: Use the correct abs() version
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sat, 29 Aug 2015 19:17:16 +0000
(21:17 +0200)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 31 Aug 2015 13:24:56 +0000
(15:24 +0200)
tools/ismindex.c
patch
|
blob
|
history
diff --git
a/tools/ismindex.c
b/tools/ismindex.c
index
f3bfec0
..
71bb36b
100644
(file)
--- 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 &&
ll
abs(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;