swresample/dither: use integer arithmetic
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sun, 23 Aug 2015 20:31:12 +0000 (16:31 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 23 Aug 2015 21:19:31 +0000 (23:19 +0200)
commit24e6729a049e476414ed677b97950421ab86c673
tree3e7fc5e92d7b91b9964372e166dba6423a09fb59
parent9aaac0410767a1e45a60c535b10e913690b0fcc1
swresample/dither: use integer arithmetic

This fixes a -Wabsolute-value reported by clang 3.5+ complaining about misuse of fabs() for integer absolute value.
An additional benefit is the removal of floating point calculations.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswresample/dither.c