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>
pull/28/head
Michael Niedermayer 13 years ago
parent f79f25e948
commit 4ec03d1386
  1. 1
      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;
}

Loading…
Cancel
Save