]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_hqdn3d.c
avfilter,swresample,swscale: use fabs, fabsf instead of FFABS
[ffmpeg] / libavfilter / vf_hqdn3d.c
index 6c76c5c176170fac998a4f17f46cc90b07d8dddf..5b367fff792fec6d8498c13f3eae36bc6476397a 100644 (file)
@@ -182,7 +182,7 @@ static int16_t *precalc_coefs(double dist25, int depth)
 
     for (i = -256<<LUT_BITS; i < 256<<LUT_BITS; i++) {
         double f = ((i<<(9-LUT_BITS)) + (1<<(8-LUT_BITS)) - 1) / 512.0; // midpoint of the bin
-        simil = FFMAX(0, 1.0 - FFABS(f) / 255.0);
+        simil = FFMAX(0, 1.0 - fabs(f) / 255.0);
         C = pow(simil, gamma) * 256.0 * f;
         ct[(256<<LUT_BITS)+i] = lrint(C);
     }