mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
Merge commit 'd347a7b248d4ffdc278373fecf033b0ade030343'
* commit 'd347a7b248d4ffdc278373fecf033b0ade030343': ismindex: Use the individual stream duration instead of the global one Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
5de251a3e3
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user