Commit 28148b09 authored by vitor's avatar vitor

Another av_clipf() usage

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14217 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 42a4fd04
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment