mirror of https://github.com/mpv-player/mpv
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].
This commit is contained in:
parent
7753a73a17
commit
c0fa12c958
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue