[FFmpeg-soc] [soc]: r5498 - aac-sbr/aacsbr.c

alexc subversion at mplayerhq.hu
Sat Dec 5 22:21:28 CET 2009


Author: alexc
Date: Sat Dec  5 22:21:28 2009
New Revision: 5498

Log:
Fix an off by one error in sbr_hf_gen.

Modified:
   aac-sbr/aacsbr.c

Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c	Sat Dec  5 16:42:06 2009	(r5497)
+++ aac-sbr/aacsbr.c	Sat Dec  5 22:21:28 2009	(r5498)
@@ -1242,7 +1242,7 @@ static int sbr_hf_gen(AACContext *ac, Sp
     int ktmp = sbr->k[3];
     for (i = 0; i < sbr->num_patches; i++) {
         if (i >= 1)
-            ktmp += sbr->patch_num_subbands[i];
+            ktmp += sbr->patch_num_subbands[i-1];
         for (x = 0; x < sbr->patch_num_subbands[i]; x++) {
             const int k = ktmp + x;
             const int g = find_freq_subband(sbr->f_tablenoise, sbr->n_q + 1, k);


More information about the FFmpeg-soc mailing list