Commit ab52eb8e authored by Vitor Sessak's avatar Vitor Sessak

Remove unneeded var

Originally committed as revision 14063 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 78043397
...@@ -45,7 +45,6 @@ static void decode(Real288_internal *glob, int amp_coef, int cb_coef) ...@@ -45,7 +45,6 @@ static void decode(Real288_internal *glob, int amp_coef, int cb_coef)
double sum, sumsum; double sum, sumsum;
float *p1, *p2; float *p1, *p2;
float buffer[5]; float buffer[5];
const float *table;
for (x=36; x--; glob->sb[x+5] = glob->sb[x]); 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) ...@@ -58,7 +57,6 @@ static void decode(Real288_internal *glob, int amp_coef, int cb_coef)
} }
f = amptable[amp_coef]; f = amptable[amp_coef];
table = codetable[cb_coef];
/* convert log and do rms */ /* convert log and do rms */
for (sum=32, x=10; x--; sum -= glob->pr2[x] * glob->lhist[x]); 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) ...@@ -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 */ sumsum = exp(sum * 0.1151292546497) * f; /* pow(10.0,sum/20)*f */
for (sum=0, x=5; x--;) { for (sum=0, x=5; x--;) {
buffer[x] = table[x] * sumsum; buffer[x] = codetable[cb_coef][x] * sumsum;
sum += buffer[x] * buffer[x]; sum += buffer[x] * buffer[x];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment