diff --git a/libavformat/utils.c b/libavformat/utils.c index 9a109d775773da24cdaa7f28394eabcc1ca4878b..277201538ded73d7a6393dfc4fc5f16e7aec6973 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3135,7 +3135,7 @@ void dump_format(AVFormatContext *ic, 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)); }