changeset 11999:949d048b7611 libavcodec

aacenc: Start the lookahead pointer 1/4 of the way into the first short window. Short windows are of length 256 and begin at sample 448.
author alexc
date Mon, 28 Jun 2010 21:50:57 +0000
parents 2e7db647fef8
children a717c1a93036
files aacenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aacenc.c	Mon Jun 28 21:49:26 2010 +0000
+++ b/aacenc.c	Mon Jun 28 21:50:57 2010 +0000
@@ -519,7 +519,7 @@
         chans    = tag == TYPE_CPE ? 2 : 1;
         cpe      = &s->cpe[i];
         samples2 = samples + start_ch;
-        la       = samples2 + 1024 * avctx->channels + start_ch;
+        la       = samples2 + (448+64) * avctx->channels + start_ch;
         if (!data)
             la = NULL;
         for (j = 0; j < chans; j++) {