comparison aacenc.c @ 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 ea2cb1a9e815
children 108e7da64995
comparison
equal deleted inserted replaced
11998:2e7db647fef8 11999:949d048b7611
517 FFPsyWindowInfo* wi = windows + start_ch; 517 FFPsyWindowInfo* wi = windows + start_ch;
518 tag = chan_map[i+1]; 518 tag = chan_map[i+1];
519 chans = tag == TYPE_CPE ? 2 : 1; 519 chans = tag == TYPE_CPE ? 2 : 1;
520 cpe = &s->cpe[i]; 520 cpe = &s->cpe[i];
521 samples2 = samples + start_ch; 521 samples2 = samples + start_ch;
522 la = samples2 + 1024 * avctx->channels + start_ch; 522 la = samples2 + (448+64) * avctx->channels + start_ch;
523 if (!data) 523 if (!data)
524 la = NULL; 524 la = NULL;
525 for (j = 0; j < chans; j++) { 525 for (j = 0; j < chans; j++) {
526 IndividualChannelStream *ics = &cpe->ch[j].ics; 526 IndividualChannelStream *ics = &cpe->ch[j].ics;
527 int k; 527 int k;