From a4435f9235eefac8a25f1cda471486e2c37b21b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 4 Oct 2013 10:14:49 +0300 Subject: [PATCH] ismindex: Change the duration field to int64_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the risk for overflow in pathlogical cases. Signed-off-by: Martin Storsjö --- tools/ismindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ismindex.c b/tools/ismindex.c index d5cf1382f8..a51c5b748f 100644 --- a/tools/ismindex.c +++ b/tools/ismindex.c @@ -49,7 +49,7 @@ static int usage(const char *argv0, int ret) struct MoofOffset { int64_t time; int64_t offset; - int duration; + int64_t duration; }; struct Track { @@ -425,7 +425,7 @@ static void print_track_chunks(FILE *out, struct Tracks *tracks, int main, fprintf(stderr, "Mismatched duration of %s chunk %d in %s and %s\n", type, i, track->name, tracks->tracks[j]->name); } - fprintf(out, "\t\t\n", + fprintf(out, "\t\t\n", i, track->offsets[i].duration); } }