diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-06-30 15:38:46 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-01 00:13:58 +0100 |
commit | df22e30172b09cda4d6f7d4f43508284be65848a (patch) | |
tree | 2cef0c343b267e5155a09f8031404d766d25f16a /libavformat/dump.c | |
parent | 0d449c81b3dd25835ae6ac849cdd150f35b9c5c6 (diff) | |
download | ffmpeg-df22e30172b09cda4d6f7d4f43508284be65848a.tar.gz |
dump: Use the correct abs() version
Fix warning from clang "absolute value function 'abs' given an argument
of type 'long long' but has parameter of type 'int' which may cause
truncation of value [-Wabsolute-value]".
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index 3248e563c8..22ae586146 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -479,7 +479,7 @@ void av_dump_format(AVFormatContext *ic, int index, int secs, us; av_log(NULL, AV_LOG_INFO, ", start: "); secs = ic->start_time / AV_TIME_BASE; - us = abs(ic->start_time % AV_TIME_BASE); + us = llabs(ic->start_time % AV_TIME_BASE); av_log(NULL, AV_LOG_INFO, "%d.%06d", secs, (int) av_rescale(us, 1000000, AV_TIME_BASE)); } |