summaryrefslogtreecommitdiff
path: root/libavcodec/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/aac.c')
-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++) {