g723_1dec: avoid memcpy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-08-13 14:53:29 +02:00
parent d8c3170c9f
commit a9040a1167

View File

@ -1208,8 +1208,7 @@ static void comp_autocorr(int16_t *buf, int16_t *autocorr)
int i, scale, temp;
int16_t vector[LPC_FRAME];
memcpy(vector, buf, LPC_FRAME * sizeof(int16_t));
scale_vector(vector, vector, LPC_FRAME);
scale_vector(vector, buf, LPC_FRAME);
/* Apply the Hamming window */
for (i = 0; i < LPC_FRAME; i++)