[FFmpeg-cvslog] r23871 - trunk/libavcodec/aacenc.c

alexc subversion
Mon Jun 28 23:50:57 CEST 2010


Author: alexc
Date: Mon Jun 28 23:50:57 2010
New Revision: 23871

Log:
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.

Modified:
   trunk/libavcodec/aacenc.c

Modified: trunk/libavcodec/aacenc.c
==============================================================================
--- trunk/libavcodec/aacenc.c	Mon Jun 28 23:49:26 2010	(r23870)
+++ trunk/libavcodec/aacenc.c	Mon Jun 28 23:50:57 2010	(r23871)
@@ -519,7 +519,7 @@ static int aac_encode_frame(AVCodecConte
         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++) {



More information about the ffmpeg-cvslog mailing list