diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-05-08 20:10:57 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-05-08 20:10:57 +0000 |
commit | ace123a6c7c48bac4b79dc4a9de6adbbe1eec6d2 (patch) | |
tree | 6817d2c2191335a0886f854347907b543b5679ec | |
parent | 1cf293e454fb8a87f00765f79365e2f00b6c6757 (diff) | |
parent | 4a9bfbf7303112c8dc1b72bf74d25dfbe576d71c (diff) | |
download | fdk-aac-ace123a6c7c48bac4b79dc4a9de6adbbe1eec6d2.tar.gz fdk-aac-ace123a6c7c48bac4b79dc4a9de6adbbe1eec6d2.tar.bz2 fdk-aac-ace123a6c7c48bac4b79dc4a9de6adbbe1eec6d2.zip |
Merge "Adjust eqSubbandGainFormat data type to prevent load of invalid value in _skipEqCoefficients()." into sc-dev am: 4a9bfbf730
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/aac/+/14471902
Change-Id: Ib3cdd864f2f788d9a5c39be79cc37d626426565b
-rw-r--r-- | libDRCdec/src/drcDec_reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libDRCdec/src/drcDec_reader.cpp b/libDRCdec/src/drcDec_reader.cpp index b3ec187..b080f50 100644 --- a/libDRCdec/src/drcDec_reader.cpp +++ b/libDRCdec/src/drcDec_reader.cpp @@ -917,7 +917,7 @@ static void _skipEqCoefficients(HANDLE_FDK_BITSTREAM hBs) { firFilterOrder; int uniqueEqSubbandGainsCount, eqSubbandGainRepresentation, eqSubbandGainCount; - EQ_SUBBAND_GAIN_FORMAT eqSubbandGainFormat; + int eqSubbandGainFormat; eqDelayMaxPresent = FDKreadBits(hBs, 1); if (eqDelayMaxPresent) { @@ -958,7 +958,7 @@ static void _skipEqCoefficients(HANDLE_FDK_BITSTREAM hBs) { uniqueEqSubbandGainsCount = FDKreadBits(hBs, 6); if (uniqueEqSubbandGainsCount > 0) { eqSubbandGainRepresentation = FDKreadBits(hBs, 1); - eqSubbandGainFormat = (EQ_SUBBAND_GAIN_FORMAT)FDKreadBits(hBs, 4); + eqSubbandGainFormat = FDKreadBits(hBs, 4); switch (eqSubbandGainFormat) { case GF_QMF32: eqSubbandGainCount = 32; |