aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian d'Heureuse <chdh@inventec.ch>2010-09-07 21:06:21 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-09-07 21:06:21 +0000
commitb163078fe309f15e4c7fecea9147ec8d8437623b (patch)
treeffd428625c1ac055796d7d860b60b61add13c420
parent48ac225db2563fe534b1d9e999bf8e70d5a577f8 (diff)
downloadffmpeg-b163078fe309f15e4c7fecea9147ec8d8437623b.tar.gz
Fix formatting for negative start times (issue 2139).
Patch by Christian d'Heureuse, chdh inventec ch Originally committed as revision 25063 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 9a109d7757..277201538d 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));
}