diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-06-29 01:50:57 +0400 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-06-29 01:50:57 +0400 |
commit | 4e42debc8d61587d123a4adf9f1c5694cef25ba9 (patch) | |
tree | 5de384fa611a1d6174bcba8b1d2c98274f3de93b /libavcodec/aacenc.c | |
parent | 75ef6898846fb14dd47691cad6ce8850c9106723 (diff) |
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.
Originally committed as revision 23871 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r-- | libavcodec/aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 6d66c66862..1aaaf3ac9e 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -519,7 +519,7 @@ static int aac_encode_frame(AVCodecContext *avctx, 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++) { |