Check the right element in isBook

This makes sure we read the right array element, corresponding
to all other array accesses in the same function, and all other
use of the isBook array elsewhere in the library.

This makes the fix in the previous commit ("Avoid too big changes
in isScale") work as intended, fixing other samples that triggered
assertions.
This commit is contained in:
Martin Storsjo 2013-07-10 17:14:34 +03:00
parent 226601a8d9
commit a63897ce4e
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ void FDKaacEnc_calcSfbPe(PE_CHANNEL_DATA *RESTRICT peChanData,
}
peChanData->sfbNActiveLines[sfbGrp+sfb] = nLines;
}
else if( isBook[sfb] ) {
else if( isBook[sfbGrp+sfb] ) {
/* provide for cost of scale factor for Intensity */
INT delta = isScale[sfbGrp+sfb] - lastValIs;
lastValIs = isScale[sfbGrp+sfb];