Browse Source

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>
tags/n0.11
Nathan Caldwell Anton Khirnov 13 years ago
parent
commit
2e626dd513
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/aacenc.c

+ 2
- 2
libavcodec/aacenc.c View File

@@ -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);
}



Loading…
Cancel
Save