diff options
Diffstat (limited to 'libavcodec/resample2.c')
-rw-r--r-- | libavcodec/resample2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c index ebda7e5a8b..70d8a1d956 100644 --- a/libavcodec/resample2.c +++ b/libavcodec/resample2.c @@ -71,9 +71,10 @@ static double bessel(double x){ double t=1; int i; + x= x*x/4; for(i=1; i<50; i++){ - t *= i; - v += pow(x*x/4, i)/(t*t); + t *= x/(i*i); + v += t; } return v; } |