changeset 7191:98c5f3839e9b libavcodec

Remove unneeded var
author vitor
date Thu, 03 Jul 2008 19:25:12 +0000
parents 1fcdc0b3d7f9
children 9517beb3b491
files ra288.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ra288.c	Thu Jul 03 19:23:42 2008 +0000
+++ b/ra288.c	Thu Jul 03 19:25:12 2008 +0000
@@ -45,7 +45,6 @@
     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 @@
     }
 
     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 @@
     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];
     }