aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-09-10 19:00:02 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-09-10 19:00:02 +0000
commitfd8897e803d94b5048248fa9688e9f257867f28f (patch)
tree321c5399177c5bf391b7f1aeee9740b04edbcf2e /libavcodec/ra288.c
parentff9a056d1a9e22440214176d7523c6a0c782167b (diff)
downloadffmpeg-fd8897e803d94b5048248fa9688e9f257867f28f.tar.gz
Convert table to integer.
Originally committed as revision 15292 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index fc683663a7..ee834013c3 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -93,7 +93,7 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*gain */
for (i=0; i < 5; i++)
- buffer[i] = codetable[cb_coef][i] * sumsum;
+ buffer[i] = codetable[cb_coef][i] * sumsum * (1./2048.);
sum = scalar_product_float(buffer, buffer, 5) / 5;