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

Steven Liu lq at chinaffmpeg.org
Wed Nov 15 09:45:03 EET 2017


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

diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index cada45ef9a..f53db0fb2b 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -69,7 +69,7 @@ static inline void max_nbits(int *nbits_ptr, int val)
 
     if (val == 0)
         return;
-    val = abs(val);
+    val = FFABS(val);
     n = 1;
     while (val != 0) {
         n++;
-- 
2.11.0 (Apple Git-81)





More information about the ffmpeg-devel mailing list