[FFmpeg-devel,08/11] avformat/replaygain: use FFABS to instead of abs

Submitted by Steven Liu on Nov. 15, 2017, 7:44 a.m.

Details

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

Commit Message

Steven Liu Nov. 15, 2017, 7:44 a.m.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/replaygain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/replaygain.c b/libavformat/replaygain.c
index 707d3cd4f1..0d1fb7d11d 100644
--- a/libavformat/replaygain.c
+++ b/libavformat/replaygain.c
@@ -61,7 +61,7 @@  static int32_t parse_value(const char *value, int32_t min)
         }
     }
 
-    if (abs(db) > (INT32_MAX - mb) / 100000)
+    if (FFABS(db) > (INT32_MAX - mb) / 100000)
         return min;
 
     return db * 100000 + sign * mb;