From 462a14b1e9373bc4e4c535b0417eae5773a6172a Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Mon, 20 Nov 2017 10:51:06 +0800 Subject: [PATCH] avformat/swfenc: use FFABS to instead of abs Reviewed-by: Michael Niedermayer Signed-off-by: Steven Liu --- 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++;