[FFmpeg-cvslog] r14088 - trunk/libavcodec/ra288.c
vitor
subversion
Sun Jul 6 12:32:29 CEST 2008
Author: vitor
Date: Sun Jul 6 12:32:29 2008
New Revision: 14088
Log:
Another use of scalar_product_float()
Modified:
trunk/libavcodec/ra288.c
Modified: trunk/libavcodec/ra288.c
==============================================================================
--- trunk/libavcodec/ra288.c (original)
+++ trunk/libavcodec/ra288.c Sun Jul 6 12:32:29 2008
@@ -69,13 +69,12 @@ static void decode(Real288_internal *glo
sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*f */
- sum = 0;
for (x=0; x < 5; x++) {
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)
sum = 1;
More information about the ffmpeg-cvslog
mailing list