Commit 53a27d3e authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: cleaner duration computation

parent 36e7dfbd
......@@ -2991,7 +2991,8 @@ void matroska_segment_t::ParseInfo( EbmlElement *info )
}
}
i_duration *= i_timescale / 1000000.0;
double f_dur = double(i_duration) * double(i_timescale) / 1000000.0;
i_duration = mtime_t(f_dur);
}
......
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