Commit c5179de2 authored by vitor's avatar vitor

Another use of scalar_product_float()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14088 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 96c79af7
...@@ -69,13 +69,12 @@ static void decode(Real288_internal *glob, float gain, int cb_coef) ...@@ -69,13 +69,12 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*f */ sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*f */
sum = 0;
for (x=0; x < 5; x++) { for (x=0; x < 5; x++) {
buffer[x] = codetable[cb_coef][x] * sumsum; buffer[x] = codetable[cb_coef][x] * sumsum;
sum += buffer[x] * buffer[x];
} }
sum /= 5; sum = scalar_product_float(buffer, buffer, 5) / 5;
if (sum < 1) if (sum < 1)
sum = 1; sum = 1;
......
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