Commit 4eecb89c authored by mru's avatar mru

DCA: use a local variable for loop boundary

This prevents gcc reloading the value from memory on each iteration
of the loop.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22848 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c8b69886
...@@ -757,6 +757,7 @@ static void qmf_32_subbands(DCAContext * s, int chans, ...@@ -757,6 +757,7 @@ static void qmf_32_subbands(DCAContext * s, int chans,
const float *prCoeff; const float *prCoeff;
int i; int i;
int sb_act = s->subband_activity[chans];
int subindex; int subindex;
scale *= sqrt(1/8.0); scale *= sqrt(1/8.0);
...@@ -770,7 +771,7 @@ static void qmf_32_subbands(DCAContext * s, int chans, ...@@ -770,7 +771,7 @@ static void qmf_32_subbands(DCAContext * s, int chans,
/* Reconstructed channel sample index */ /* Reconstructed channel sample index */
for (subindex = 0; subindex < 8; subindex++) { for (subindex = 0; subindex < 8; subindex++) {
/* Load in one sample from each subband and clear inactive subbands */ /* Load in one sample from each subband and clear inactive subbands */
for (i = 0; i < s->subband_activity[chans]; i++){ for (i = 0; i < sb_act; i++){
uint32_t v = AV_RN32A(&samples_in[i][subindex]) ^ ((i-1)&2)<<30; uint32_t v = AV_RN32A(&samples_in[i][subindex]) ^ ((i-1)&2)<<30;
AV_WN32A(&s->raXin[i], v); AV_WN32A(&s->raXin[i], v);
} }
......
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