1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-04 18:29:59 +02:00

Another av_clipf() usage

Originally committed as revision 14217 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-07-13 20:39:55 +00:00
parent aa64ee30d1
commit 3819081f75

View File

@ -62,10 +62,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
/* convert log and do rms */
sum = 32. - scalar_product_float(glob->pr2, glob->lhist, 10);
if (sum < 0)
sum = 0;
else if (sum > 60)
sum = 60;
sum = av_clipf(sum, 0, 60);
sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*f */