[FFmpeg-soc] [soc]: r3763 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Tue Oct 14 06:48:11 CEST 2008


Author: kostya
Date: Tue Oct 14 06:48:11 2008
New Revision: 3763

Log:
181l: wrong index was used for calculating coded vector length

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Tue Oct 14 06:48:11 2008
@@ -366,7 +366,7 @@ static float quantize_band_cost(const fl
         const float *vec = ff_aac_codebook_vectors[cb-1];
         for(j = 0; j < ff_aac_spectral_sizes[cb-1]; j++, vec += dim){
             float rd = 0.0f;
-            int curbits = ff_aac_spectral_bits[cb-1][minidx];
+            int curbits = ff_aac_spectral_bits[cb-1][j];
             if(IS_CODEBOOK_UNSIGNED(cb)){
                 for(k = 0; k < dim; k++){
                     float t = fabsf(in[i+k]);
@@ -435,7 +435,7 @@ static void quantize_and_encode_band(Put
         const float *vec = ff_aac_codebook_vectors[cb-1];
         for(j = 0; j < ff_aac_spectral_sizes[cb-1]; j++, vec += dim){
             float rd = 0.0f;
-            int curbits = ff_aac_spectral_bits[cb-1][minidx];
+            int curbits = ff_aac_spectral_bits[cb-1][j];
             if(IS_CODEBOOK_UNSIGNED(cb)){
                 for(k = 0; k < dim; k++){
                     float t = fabsf(in[i+k]);



More information about the FFmpeg-soc mailing list