AAC: 10l: fix PNS decoding
authorMåns Rullgård <mans@mansr.com>
Tue, 22 Sep 2009 19:31:01 +0000 (19:31 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 22 Sep 2009 19:31:01 +0000 (19:31 +0000)
Originally committed as revision 19970 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aac.c

index d63d99f..0b8922f 100644 (file)
@@ -861,7 +861,7 @@ static int decode_spectrum_and_dequant(AACContext *ac, float coef[1024],
                 for (group = 0; group < ics->group_len[g]; group++) {
                     float scale;
                     float band_energy = 0;
-                    float *cf = coef + group * 128;
+                    float *cf = coef + group * 128 + offsets[i];
                     int len = offsets[i+1] - offsets[i];
 
                     for (k = offsets[i]; k < offsets[i + 1]; k++) {