[FFmpeg-cvslog] g723_1dec: avoid memcpy

Michael Niedermayer git at videolan.org
Mon Aug 13 15:42:55 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Aug 13 14:53:29 2012 +0200| [a9040a11678f34b1dc2b8760ee1377478bdb3e83] | committer: Michael Niedermayer

g723_1dec: avoid memcpy

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9040a11678f34b1dc2b8760ee1377478bdb3e83
---

 libavcodec/g723_1.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index c1e7d2b..5319aec 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++)



More information about the ffmpeg-cvslog mailing list