mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 13:35:13 +00:00
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:
parent
f79f25e948
commit
4ec03d1386
@ -78,6 +78,7 @@ static double bessel(double x){
|
||||
lastv=v;
|
||||
t *= x*inv[i];
|
||||
v += t;
|
||||
av_assert2(i<99);
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user