diff mbox

[FFmpeg-devel,02/11] avformat/dump: use FFABS to instead of llabs

Message ID 20171115074348.25223-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Liu Steven Nov. 15, 2017, 7:43 a.m. UTC
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/dump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/libavformat/dump.c b/libavformat/dump.c
index 77043e3fdb..d414a6548f 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -586,8 +586,8 @@  void av_dump_format(AVFormatContext *ic, int index,
         if (ic->start_time != AV_NOPTS_VALUE) {
             int secs, us;
             av_log(NULL, AV_LOG_INFO, ", start: ");
-            secs = llabs(ic->start_time / AV_TIME_BASE);
-            us   = llabs(ic->start_time % AV_TIME_BASE);
+            secs = FFABS(ic->start_time / AV_TIME_BASE);
+            us   = FFABS(ic->start_time % AV_TIME_BASE);
             av_log(NULL, AV_LOG_INFO, "%s%d.%06d",
                    ic->start_time >= 0 ? "" : "-",
                    secs,