avformat/swfenc: use FFABS to instead of abs

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2017-11-20 10:51:06 +08:00
parent cb259467d1
commit 462a14b1e9

View 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++;