Commit 4ec03d13 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f79f25e9
......@@ -78,6 +78,7 @@ static double bessel(double x){
lastv=v;
t *= x*inv[i];
v += t;
av_assert2(i<99);
}
return v;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment