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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user