summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-03 19:25:12 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-03 19:25:12 +0000
commitab52eb8e50284fa5f090a26ce1580f2c2f87c879 (patch)
tree52dc85cb02a3bd93c6fbc99ae6a656f60d036525 /libavcodec/ra288.c
parent780433976d699694ae6cb88dad87af16c73d3a06 (diff)
Remove unneeded var
Originally committed as revision 14063 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 358fc12721..43686d80bf 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -45,7 +45,6 @@ static void decode(Real288_internal *glob, int amp_coef, int cb_coef)
double sum, sumsum;
float *p1, *p2;
float buffer[5];
- const float *table;
for (x=36; x--; glob->sb[x+5] = glob->sb[x]);
@@ -58,7 +57,6 @@ static void decode(Real288_internal *glob, int amp_coef, int cb_coef)
}
f = amptable[amp_coef];
- table = codetable[cb_coef];
/* convert log and do rms */
for (sum=32, x=10; x--; sum -= glob->pr2[x] * glob->lhist[x]);
@@ -71,7 +69,7 @@ static void decode(Real288_internal *glob, int amp_coef, int cb_coef)
sumsum = exp(sum * 0.1151292546497) * f; /* pow(10.0,sum/20)*f */
for (sum=0, x=5; x--;) {
- buffer[x] = table[x] * sumsum;
+ buffer[x] = codetable[cb_coef][x] * sumsum;
sum += buffer[x] * buffer[x];
}