diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-09-10 19:00:02 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-09-10 19:00:02 +0000 |
commit | fd8897e803d94b5048248fa9688e9f257867f28f (patch) | |
tree | 321c5399177c5bf391b7f1aeee9740b04edbcf2e /libavcodec/ra288.c | |
parent | ff9a056d1a9e22440214176d7523c6a0c782167b (diff) | |
download | ffmpeg-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.c | 2 |
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; |