# HG changeset patch # User alexc # Date 1277761857 0 # Node ID 949d048b76114db9316cb2c39703cfdf79f90010 # Parent 2e7db647fef84cb6f3e2d1ff51226782ce3cfd76 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. diff -r 2e7db647fef8 -r 949d048b7611 aacenc.c --- 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++) {