summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-09 01:42:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-09 01:44:15 +0200
commit4ec03d138622b77887974a254861a425a57e02c3 (patch)
tree8e98a7fdbeaee3107a43354df0e6d277a709b5bc /libswresample
parentf79f25e948af05da81631dcce0768d507033d0f7 (diff)
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>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/resample.c1
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;
}