diff --git a/tools/ismindex.c b/tools/ismindex.c
index cf89f5c1e125eb5e0fa55fcff5db70a8d2aad690..64fa7e80c012ca64998b14bcbe288a6f5eddb137 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -320,8 +320,7 @@ static int handle_file(struct Tracks *tracks, const char *file, int split)
         track->bitrate   = st->codec->bit_rate;
         track->track_id  = st->id;
         track->timescale = st->time_base.den;
-        track->duration  = av_rescale_rnd(ctx->duration, track->timescale,
-                                          AV_TIME_BASE, AV_ROUND_UP);
+        track->duration  = st->duration;
         track->is_audio  = st->codec->codec_type == AVMEDIA_TYPE_AUDIO;
         track->is_video  = st->codec->codec_type == AVMEDIA_TYPE_VIDEO;