mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02: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