mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
utils: fix rounding of micro seconds
Found-by: Johan Wessfeldt <johan.wessfeldt@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3a34ac6541
commit
6992b0bfc2
@ -3354,8 +3354,9 @@ void av_dump_format(AVFormatContext *ic,
|
||||
av_log(NULL, AV_LOG_INFO, " Duration: ");
|
||||
if (ic->duration != AV_NOPTS_VALUE) {
|
||||
int hours, mins, secs, us;
|
||||
secs = ic->duration / AV_TIME_BASE;
|
||||
us = ic->duration % AV_TIME_BASE;
|
||||
int64_t duration = ic->duration + 5000;
|
||||
secs = duration / AV_TIME_BASE;
|
||||
us = duration % AV_TIME_BASE;
|
||||
mins = secs / 60;
|
||||
secs %= 60;
|
||||
hours = mins / 60;
|
||||
|
Loading…
Reference in New Issue
Block a user