diff options
author | Christian d'Heureuse <chdh@inventec.ch> | 2010-09-07 21:06:21 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-09-07 21:06:21 +0000 |
commit | b163078fe309f15e4c7fecea9147ec8d8437623b (patch) | |
tree | ffd428625c1ac055796d7d860b60b61add13c420 | |
parent | 48ac225db2563fe534b1d9e999bf8e70d5a577f8 (diff) | |
download | ffmpeg-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.c | 2 |
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)); } |