Commit eec75e0a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '22de0f83'

* commit '22de0f83':
  mov: Compute max duration among the tracks with a timescale
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4a6f1be1 22de0f83
......@@ -1877,7 +1877,7 @@ static int mov_write_mvhd_tag(AVIOContext *pb, MOVMuxContext *mov)
int version;
for (i = 0; i < mov->nb_streams; i++) {
if (mov->tracks[i].entry > 0) {
if (mov->tracks[i].entry > 0 && mov->tracks[i].timescale) {
max_track_len_temp = av_rescale_rnd(mov->tracks[i].track_duration,
MOV_TIMESCALE,
mov->tracks[i].timescale,
......
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