ffmpeg | branch: master | Vittorio Giovara <vittorio.giov...@gmail.com> | Tue 
Jun 30 15:38:46 2015 +0200| [df22e30172b09cda4d6f7d4f43508284be65848a] | 
committer: Vittorio Giovara

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]".

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df22e30172b09cda4d6f7d4f43508284be65848a
---

 libavformat/dump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dump.c b/libavformat/dump.c
index 3248e56..22ae586 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));
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to