New submission from Christian d'Heureuse <[email protected]>:
A negative value of AVFormatContext->start_time is displayed incorrectly at the
console output, e.g. as "-400.-228345" instead of "-400.228345" (note the second
minus sign after the decimal point, see issue1086 for a full example).
The supplied patch fixes this bug.
----------
files: utils.patch
messages: 11518
priority: normal
status: new
substatus: new
title: Negative start time formatted incorrectly
type: patch
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2139>
________________________________________________
Index: utils.c
===================================================================
--- utils.c (revision 24650)
+++ utils.c (working copy)
@@ -3137,7 +3137,7 @@
int secs, us;
av_log(NULL, AV_LOG_INFO, ", start: ");
secs = ic->start_time / AV_TIME_BASE;
- us = ic->start_time % AV_TIME_BASE;
+ us = abs(ic->start_time % AV_TIME_BASE);
av_log(NULL, AV_LOG_INFO, "%d.%06d",
secs, (int)av_rescale(us, 1000000, AV_TIME_BASE));
}