[FFmpeg-soc] [soc]: r1440 - aac/aac.c
andoma
subversion at mplayerhq.hu
Sat Nov 10 22:23:32 CET 2007
Author: andoma
Date: Sat Nov 10 22:23:32 2007
New Revision: 1440
Log:
Fix filterbank for EIGHT_SHORT_SEQUENCE
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Sat Nov 10 22:23:32 2007
@@ -1747,7 +1747,7 @@ static void window_trans(AACContext * ac
memcpy(saved, buf + 1024, 448 * sizeof(float));
for (i = 448; i < 576; i++) buf[i + 1024] *= 0.125; // normalize
ac->dsp.vector_fmul_reverse(saved + 448, buf + 1024 + 448, swindow, 128);
- //for (i = 576; i < 1024; i++) saved[i] = 0.0;
+ for (i = 576; i < 1024; i++) saved[i] = 0.0;
}
} else {
int i;
@@ -1765,13 +1765,14 @@ static void window_trans(AACContext * ac
vector_fmul_add_add_add(ac, out + 4*128, buf + 8*128, swindow, saved + 4*128, ac->revers + 3*128, ac->add_bias, 64);
//for (i = -448; i < 1024 - 448; i++)
// out[i] = ac->add_bias;
+ saved -= 448;
buf += 1024;
ac->dsp.vector_fmul_add_add(saved, buf + 64, swindow, ac->revers + 3*128+64, 0, 64, 1);
ac->dsp.vector_fmul_add_add(saved + 64, buf + 2*128, swindow, ac->revers + 4*128, 0, 128, 1);
ac->dsp.vector_fmul_add_add(saved + 192, buf + 4*128, swindow, ac->revers + 5*128, 0, 128, 1);
ac->dsp.vector_fmul_add_add(saved + 320, buf + 6*128, swindow, ac->revers + 6*128, 0, 128, 1);
memcpy( saved + 448, ac->revers + 7*128, 128 * sizeof(float));
- //for (i = 576; i < 1024; i++) saved[i] = 0.0;
+ for (i = 576; i < 1024; i++) saved[i] = 0.0;
}
}
More information about the FFmpeg-soc
mailing list