diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-09 01:42:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-09 01:44:15 +0200 |
commit | 4ec03d138622b77887974a254861a425a57e02c3 (patch) | |
tree | 8e98a7fdbeaee3107a43354df0e6d277a709b5bc | |
parent | f79f25e948af05da81631dcce0768d507033d0f7 (diff) | |
download | ffmpeg-4ec03d138622b77887974a254861a425a57e02c3.tar.gz |
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>
-rw-r--r-- | libswresample/resample.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c index cef2a81734..7a5c7d73b3 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -78,6 +78,7 @@ static double bessel(double x){ lastv=v; t *= x*inv[i]; v += t; + av_assert2(i<99); } return v; } |