summaryrefslogtreecommitdiffstats
path: root/libAACenc/src/line_pe.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2013-08-08 17:43:20 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2013-08-20 15:03:32 -0700
commit60a27b7fe5bf2c3b07ae7f679ca67c0c5cba3b00 (patch)
tree12a04cd1fdb1b8113eee2836e449fec09d01879e /libAACenc/src/line_pe.cpp
parented247dfa54234c1115c35a05327955b29b161e8a (diff)
downloadODR-AudioEnc-60a27b7fe5bf2c3b07ae7f679ca67c0c5cba3b00.tar.gz
ODR-AudioEnc-60a27b7fe5bf2c3b07ae7f679ca67c0c5cba3b00.tar.bz2
ODR-AudioEnc-60a27b7fe5bf2c3b07ae7f679ca67c0c5cba3b00.zip
Encoder intensity fix
AAC encoder: Prevent illegal intensity values delta coding at short blocks. Bug 9428126 Change-Id: Ic287b86f3229022740f2317ea74aabe612de5e6b
Diffstat (limited to 'libAACenc/src/line_pe.cpp')
-rw-r--r--libAACenc/src/line_pe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACenc/src/line_pe.cpp b/libAACenc/src/line_pe.cpp
index e4dc957..f3c0dab 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];