9 Aug 2012 01:55
bessel: check that the function terminates as expected by av_assert2().
Michael Niedermayer <git <at> videolan.org>
2012-08-08 23:55:06 GMT
2012-08-08 23:55:06 GMT
ffmpeg | branch: master | Michael Niedermayer <michaelni <at> gmx.at> | Thu Aug 9 01:42:42 2012 +0200| [4ec03d138622b77887974a254861a425a57e02c3] | committer: Michael Niedermayer 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 <at> gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ec03d138622b77887974a254861a425a57e02c3 --- libswresample/resample.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libswresample/resample.c b/libswresample/resample.c index cef2a81..7a5c7d7 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c <at> <at> -78,6 +78,7 <at> <at> static double bessel(double x){ lastv=v; t *= x*inv[i]; v += t; + av_assert2(i<99); } return v; }
RSS Feed