diff options
author | Martin Storsjo <martin@martin.st> | 2013-07-10 17:14:34 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2013-07-10 17:21:42 +0300 |
commit | a63897ce4e4f244bb7c5b4916574152b2d0c1db7 (patch) | |
tree | 05be58657000827d047b55ac10109a56076e299c /libAACenc | |
parent | 226601a8d9bce81455e161a0e26051d2f22c5d7a (diff) | |
download | fdk-aac-dabplus-a63897ce4e4f244bb7c5b4916574152b2d0c1db7.tar.gz fdk-aac-dabplus-a63897ce4e4f244bb7c5b4916574152b2d0c1db7.tar.bz2 fdk-aac-dabplus-a63897ce4e4f244bb7c5b4916574152b2d0c1db7.zip |
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.
Diffstat (limited to 'libAACenc')
-rw-r--r-- | libAACenc/src/line_pe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACenc/src/line_pe.cpp b/libAACenc/src/line_pe.cpp index 7014bcb..ba7a25d 100644 --- a/libAACenc/src/line_pe.cpp +++ b/libAACenc/src/line_pe.cpp @@ -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]; |