[FFmpeg-cvslog] aac: Remove some suspicious illegal memcpy()s from LTP.

Alex Converse git at videolan.org
Tue Aug 2 22:24:33 CEST 2011


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Fri Jul 29 15:49:11 2011 -0700| [a6c49f18abacb9bf52d4d808a2a56561a5b5445c] | committer: Alex Converse

aac: Remove some suspicious illegal memcpy()s from LTP.

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

 libavcodec/aacdec.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 6bf1427..783bf99 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -1789,12 +1789,10 @@ static void windowing_and_mdct_ltp(AACContext *ac, float *out,
     } else {
         memset(in, 0, 448 * sizeof(float));
         ac->dsp.vector_fmul(in + 448, in + 448, swindow_prev, 128);
-        memcpy(in + 576, in + 576, 448 * sizeof(float));
     }
     if (ics->window_sequence[0] != LONG_START_SEQUENCE) {
         ac->dsp.vector_fmul_reverse(in + 1024, in + 1024, lwindow, 1024);
     } else {
-        memcpy(in + 1024, in + 1024, 448 * sizeof(float));
         ac->dsp.vector_fmul_reverse(in + 1024 + 448, in + 1024 + 448, swindow, 128);
         memset(in + 1024 + 576, 0, 448 * sizeof(float));
     }



More information about the ffmpeg-cvslog mailing list