changeset 7728:311f7ae6fbbc libavcodec

Move t1 and t2 declaration from the QMF code closer to where they are used.
author michael
date Fri, 29 Aug 2008 14:53:07 +0000
parents ce660aaf7bf8
children 38d356950bf4
files dca.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dca.c	Fri Aug 29 14:44:47 2008 +0000
+++ b/dca.c	Fri Aug 29 14:53:07 2008 +0000
@@ -673,8 +673,6 @@
 
     /* Reconstructed channel sample index */
     for (subindex = 0; subindex < 8; subindex++) {
-        float t1, t2;
-
         /* Load in one sample from each subband and clear inactive subbands */
         for (i = 0; i < s->subband_activity[chans]; i++)
             raXin[i] = samples_in[i][subindex];
@@ -684,8 +682,8 @@
         /* Multiply by cosine modulation coefficients and
          * create temporary arrays SUM and DIFF */
         for (j = 0, k = 0; k < 16; k++) {
-            t1 = 0.0;
-            t2 = 0.0;
+            float t1 = 0.0;
+            float t2 = 0.0;
             for (i = 0; i < 16; i++, j++){
                 t1 += (raXin[2 * i] + raXin[2 * i + 1]) * cos_mod[j];
                 t2 += (raXin[2 * i] + raXin[2 * i - 1]) * cos_mod[j + 256];