[FFmpeg-cvslog] aacenc: Fix LONG_START windowing.

Nathan Caldwell git at videolan.org
Sun Jan 29 00:58:40 CET 2012


ffmpeg | branch: master | Nathan Caldwell <saintdev at gmail.com> | Fri Jan 27 22:23:41 2012 -0700| [2e626dd5136f4daa244b37284e22483cdc7df1ac] | committer: Anton Khirnov

aacenc: Fix LONG_START windowing.

Forgot to add the equivalent amount to the incoming sample pointer as the output pointer.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

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

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 765f9a7..e610a80 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -200,8 +200,8 @@ WINDOW_FUNC(long_start)
     float *out = sce->ret;
 
     dsp->vector_fmul(out, audio, lwindow, 1024);
-    memcpy(out + 1024, audio, sizeof(out[0]) * 448);
-    dsp->vector_fmul_reverse(out + 1024 + 448, audio, swindow, 128);
+    memcpy(out + 1024, audio + 1024, sizeof(out[0]) * 448);
+    dsp->vector_fmul_reverse(out + 1024 + 448, audio + 1024 + 448, swindow, 128);
     memset(out + 1024 + 576, 0, sizeof(out[0]) * 448);
 }
 



More information about the ffmpeg-cvslog mailing list