aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-13 14:53:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-13 14:53:29 +0200
commita9040a11678f34b1dc2b8760ee1377478bdb3e83 (patch)
treed3b1c384dc21d328e70a2acb75b992de87f750cf /libavcodec
parentd8c3170c9ff81b5563eba543ff56687bcb7f5127 (diff)
downloadffmpeg-a9040a11678f34b1dc2b8760ee1377478bdb3e83.tar.gz
g723_1dec: avoid memcpy
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/g723_1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index c1e7d2bb49..5319aecc02 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -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++)