Commit 5de251a3 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'd347a7b2'

* commit 'd347a7b2':
  ismindex: Use the individual stream duration instead of the global one
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a7630e37 d347a7b2
......@@ -326,8 +326,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment