From 27dab30209d60f96afcf679d602c32ca02aed445 Mon Sep 17 00:00:00 2001 From: garamond13 <98652255+garamond13@users.noreply.github.com> Date: Mon, 12 Dec 2022 19:28:30 +0100 Subject: [PATCH] filter_kernels: fix kaiser Seems to me that params[1] is set to NAN and here should be the same value as in params[0]. --- video/out/filter_kernels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index a33fb9179f..cf681cc5db 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -240,7 +240,7 @@ static double kaiser(params *p, double x) { if (x > 1) return 0; - double i0a = 1.0 / bessel_i0(p->params[1]); + double i0a = 1.0 / bessel_i0(p->params[0]); return bessel_i0(p->params[0] * sqrt(1.0 - x * x)) * i0a; }