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

Steven Liu lq at chinaffmpeg.org
Wed Nov 15 09:44:55 EET 2017


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavformat/replaygain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.11.0 (Apple Git-81)





More information about the ffmpeg-devel mailing list