[FFmpeg-cvslog] r19480 - in trunk/libavcodec: aaccoder.c aacenc.c

alexc subversion
Wed Jul 22 05:53:31 CEST 2009


Author: alexc
Date: Wed Jul 22 05:53:30 2009
New Revision: 19480

Log:
Be sure to increment our position in the coefficient array when skipping a zero
band in the twoloop scalefactor search.

Modified:
   trunk/libavcodec/aaccoder.c
   trunk/libavcodec/aacenc.c

Modified: trunk/libavcodec/aaccoder.c
==============================================================================
--- trunk/libavcodec/aaccoder.c	Tue Jul 21 16:32:05 2009	(r19479)
+++ trunk/libavcodec/aaccoder.c	Wed Jul 22 05:53:30 2009	(r19480)
@@ -677,8 +677,10 @@ static void search_for_quantizers_twoloo
                     float mindist = INFINITY;
                     int minbits = 0;
 
-                    if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218)
+                    if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218) {
+                        start += sce->ics.swb_sizes[g];
                         continue;
+                    }
                     minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]);
                     for (cb = 0; cb <= ESC_BT; cb++) {
                         float dist = 0.0f;

Modified: trunk/libavcodec/aacenc.c
==============================================================================
--- trunk/libavcodec/aacenc.c	Tue Jul 21 16:32:05 2009	(r19479)
+++ trunk/libavcodec/aacenc.c	Wed Jul 22 05:53:30 2009	(r19480)
@@ -193,7 +193,7 @@ static av_cold int aac_encode_init(AVCod
     lengths[1] = ff_aac_num_swb_128[i];
     ff_psy_init(&s->psy, avctx, 2, sizes, lengths);
     s->psypp = ff_psy_preprocess_init(avctx);
-    s->coder = &ff_aac_coders[0];
+    s->coder = &ff_aac_coders[2];
 
     s->lambda = avctx->global_quality ? avctx->global_quality : 120;
 #if !CONFIG_HARDCODED_TABLES



More information about the ffmpeg-cvslog mailing list