Browse Source

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>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
4ec03d1386
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libswresample/resample.c

+ 1
- 0
libswresample/resample.c View File

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


Loading…
Cancel
Save