From 8ac052ac8a8a9ac0dfbdabe77055509ba15fe20a Mon Sep 17 00:00:00 2001 From: Jorge Rodriguez Date: Thu, 24 Jul 2014 15:02:39 -0700 Subject: [PATCH] Avoid gaps between box filter kernels. --- stb_resample.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_resample.h b/stb_resample.h index 9747d63..c95531d 100644 --- a/stb_resample.h +++ b/stb_resample.h @@ -197,7 +197,7 @@ typedef struct float stbr__filter_nearest(float x) { - if (fabs(x) < 0.5) + if (fabs(x) <= 0.5) return 1; else return 0;