Skip to content
Snippets Groups Projects
Commit 4ec03d13 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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