diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-05-08 19:50:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-05-08 19:50:20 +0000 |
commit | 4a9bfbf7303112c8dc1b72bf74d25dfbe576d71c (patch) | |
tree | 6817d2c2191335a0886f854347907b543b5679ec /libDRCdec/src/drcDec_reader.cpp | |
parent | c2416f5e9360db0a6a3578fff087392fc7656f38 (diff) | |
parent | f724d3361fc367db0fe82a06a4d43f2eba0f95d6 (diff) | |
download | fdk-aac-4a9bfbf7303112c8dc1b72bf74d25dfbe576d71c.tar.gz fdk-aac-4a9bfbf7303112c8dc1b72bf74d25dfbe576d71c.tar.bz2 fdk-aac-4a9bfbf7303112c8dc1b72bf74d25dfbe576d71c.zip |
Merge "Adjust eqSubbandGainFormat data type to prevent load of invalid value in _skipEqCoefficients()." into sc-dev
Diffstat (limited to 'libDRCdec/src/drcDec_reader.cpp')
-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; |