aboutsummaryrefslogtreecommitdiffstats
path: root/libSACenc/src/sacenc_nlc_enc.cpp
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-05-04 17:25:53 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-05-04 17:25:53 -0700
commit259a3c5bd5eb9be666f40dfb2978502533dd2b82 (patch)
tree8bf6f33f28355cd7dd6c4f5a01c5324a43ec66bc /libSACenc/src/sacenc_nlc_enc.cpp
parentdf390e34924dd8ccf7d16f5f4781f9da523e225e (diff)
parent9ab67882eca7454dc001e158bc1e6e2219d6650b (diff)
downloadfdk-aac-259a3c5bd5eb9be666f40dfb2978502533dd2b82.tar.gz
fdk-aac-259a3c5bd5eb9be666f40dfb2978502533dd2b82.tar.bz2
fdk-aac-259a3c5bd5eb9be666f40dfb2978502533dd2b82.zip
FDKv2 additional fixes
am: 9ab67882ec Change-Id: Ia2ecfc503d1c2a429ad1c7dd5103263c02691a56
Diffstat (limited to 'libSACenc/src/sacenc_nlc_enc.cpp')
-rw-r--r--libSACenc/src/sacenc_nlc_enc.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/libSACenc/src/sacenc_nlc_enc.cpp b/libSACenc/src/sacenc_nlc_enc.cpp
index ecb89b7..0ba6cc9 100644
--- a/libSACenc/src/sacenc_nlc_enc.cpp
+++ b/libSACenc/src/sacenc_nlc_enc.cpp
@@ -379,16 +379,22 @@ static UINT huff_enc_1D(HANDLE_FDK_BITSTREAM strm, const DATA_TYPE data_type,
switch (data_type) {
case t_CLD:
- part0 = fdk_sacenc_huffPart0Tab.cld[in_data[0]];
pHuffTab = fdk_sacenc_huffCLDTab.h1D[dim1];
break;
case t_ICC:
- part0 = fdk_sacenc_huffPart0Tab.icc[in_data[0]];
pHuffTab = fdk_sacenc_huffICCTab.h1D[dim1];
break;
}
if (p0_flag) {
+ switch (data_type) {
+ case t_CLD:
+ part0 = fdk_sacenc_huffPart0Tab.cld[in_data[0]];
+ break;
+ case t_ICC:
+ part0 = fdk_sacenc_huffPart0Tab.icc[in_data[0]];
+ break;
+ }
huffBits += FDKwriteBits(strm, HUFF_VALUE(part0), HUFF_LENGTH(part0));
offset = 1;
}