summaryrefslogtreecommitdiff
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-08-29 14:53:07 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-08-29 14:53:07 +0000
commitef8676276d9f9d4f153be8c46161cb21f54ed77b (patch)
tree8c811507484211accf0152a17d312a222b4cb7a2 /libavcodec/dca.c
parentaddafb0e0a50c1749071219ce23b289d7a3b9eb5 (diff)
Move t1 and t2 declaration from the QMF code closer to where they are used.
Originally committed as revision 15024 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r--libavcodec/dca.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 57ca6145a5..94d399e315 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -673,8 +673,6 @@ static void qmf_32_subbands(DCAContext * s, int chans,
/* 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 @@ static void qmf_32_subbands(DCAContext * s, int chans,
/* 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];