From 4ec03d138622b77887974a254861a425a57e02c3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 9 Aug 2012 01:42:42 +0200 Subject: [PATCH] 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 --- libswresample/resample.c | 1 + 1 file changed, 1 insertion(+) 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; }