bessel: check that the function terminates as expected by av_assert2().
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Aug 2012 23:42:42 +0000 (01:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Aug 2012 23:44:15 +0000 (01:44 +0200)
A clear abort is better than wrong output and a possible crash.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample.c

index cef2a81..7a5c7d7 100644 (file)
@@ -78,6 +78,7 @@ static double bessel(double x){
         lastv=v;
         t *= x*inv[i];
         v += t;
+        av_assert2(i<99);
     }
     return v;
 }