[FFmpeg-cvslog] r24233 - trunk/libavcodec/aacpsy.c

alexc subversion
Wed Jul 14 06:10:52 CEST 2010


Author: alexc
Date: Wed Jul 14 06:10:52 2010
New Revision: 24233

Log:
aacenc: psy_3gpp_init(): Fix line_to_frequency for short windows.

Modified:
   trunk/libavcodec/aacpsy.c

Modified: trunk/libavcodec/aacpsy.c
==============================================================================
--- trunk/libavcodec/aacpsy.c	Wed Jul 14 06:10:47 2010	(r24232)
+++ trunk/libavcodec/aacpsy.c	Wed Jul 14 06:10:52 2010	(r24233)
@@ -124,7 +124,7 @@ static av_cold int psy_3gpp_init(FFPsyCo
     minath = ath(3410, ATH_ADD);
     for (j = 0; j < 2; j++) {
         Psy3gppCoeffs *coeffs = &pctx->psy_coef[j];
-        float line_to_frequency = ctx->avctx->sample_rate / 2048.0f;
+        float line_to_frequency = ctx->avctx->sample_rate / (j ? 256.f : 2048.0f);
         i = 0;
         prev = 0.0;
         for (g = 0; g < ctx->num_bands[j]; g++) {



More information about the ffmpeg-cvslog mailing list