aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-09-22 19:31:01 +0000
committerMåns Rullgård <mans@mansr.com>2009-09-22 19:31:01 +0000
commit0cb71412829dfe60421961a19a1deb1a8a52066a (patch)
tree93248986f0d95e670288bf44d643f74f5f7ab5f4
parent61dc238b45245c9e646d47ca8f51c089a1dfb913 (diff)
downloadffmpeg-0cb71412829dfe60421961a19a1deb1a8a52066a.tar.gz
AAC: 10l: fix PNS decoding
Originally committed as revision 19970 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/aac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index d63d99fefc..0b8922fe6c 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -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++) {