Commit 0cb71412 authored by Måns Rullgård's avatar Måns Rullgård

AAC: 10l: fix PNS decoding

Originally committed as revision 19970 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 61dc238b
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment