aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-11-20 10:51:06 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-11-20 10:51:06 +0800
commit462a14b1e9373bc4e4c535b0417eae5773a6172a (patch)
treeed0f26f37737f94344bebc31f0a0cde11b3f61ee
parentcb259467d1ea0320b4150180f0d94b01c5b7e0ed (diff)
downloadffmpeg-462a14b1e9373bc4e4c535b0417eae5773a6172a.tar.gz
avformat/swfenc: use FFABS to instead of abs
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r--libavformat/swfenc.c2
1 files changed, 1 insertions, 1 deletions
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++;