avformat/swfenc: use FFABS to instead of abs
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 20 Nov 2017 02:51:06 +0000 (10:51 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 20 Nov 2017 02:51:06 +0000 (10:51 +0800)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/swfenc.c

index cada45e..f53db0f 100644 (file)
@@ -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++;