bessel: check that the function terminates as expected by av_assert2().

A clear abort is better than wrong output and a possible crash.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-08-09 01:42:42 +02:00
parent f79f25e948
commit 4ec03d1386

View File

@ -78,6 +78,7 @@ static double bessel(double x){
lastv=v;
t *= x*inv[i];
v += t;
av_assert2(i<99);
}
return v;
}