1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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@khirnov.net>
This commit is contained in:
Nathan Caldwell 2012-01-27 22:23:41 -07:00 committed by Anton Khirnov
parent dc7e7d4dd9
commit 2e626dd513

View File

@ -200,8 +200,8 @@ WINDOW_FUNC(long_start)
float *out = sce->ret; float *out = sce->ret;
dsp->vector_fmul(out, audio, lwindow, 1024); dsp->vector_fmul(out, audio, lwindow, 1024);
memcpy(out + 1024, audio, sizeof(out[0]) * 448); memcpy(out + 1024, audio + 1024, sizeof(out[0]) * 448);
dsp->vector_fmul_reverse(out + 1024 + 448, audio, swindow, 128); dsp->vector_fmul_reverse(out + 1024 + 448, audio + 1024 + 448, swindow, 128);
memset(out + 1024 + 576, 0, sizeof(out[0]) * 448); memset(out + 1024 + 576, 0, sizeof(out[0]) * 448);
} }