mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
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
d5c3b9d989
commit
27dab30209
@ -240,7 +240,7 @@ static double kaiser(params *p, double x)
|
|||||||
{
|
{
|
||||||
if (x > 1)
|
if (x > 1)
|
||||||
return 0;
|
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;
|
return bessel_i0(p->params[0] * sqrt(1.0 - x * x)) * i0a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user