mirror of https://github.com/mstorsjo/fdk-aac.git
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: Id42fc123b39c431988b2549b56e9de12036a9020
This commit is contained in:
commit
951758e6d6
|
@ -917,7 +917,7 @@ static void _skipEqCoefficients(HANDLE_FDK_BITSTREAM hBs) {
|
||||||
firFilterOrder;
|
firFilterOrder;
|
||||||
int uniqueEqSubbandGainsCount, eqSubbandGainRepresentation,
|
int uniqueEqSubbandGainsCount, eqSubbandGainRepresentation,
|
||||||
eqSubbandGainCount;
|
eqSubbandGainCount;
|
||||||
EQ_SUBBAND_GAIN_FORMAT eqSubbandGainFormat;
|
int eqSubbandGainFormat;
|
||||||
|
|
||||||
eqDelayMaxPresent = FDKreadBits(hBs, 1);
|
eqDelayMaxPresent = FDKreadBits(hBs, 1);
|
||||||
if (eqDelayMaxPresent) {
|
if (eqDelayMaxPresent) {
|
||||||
|
@ -958,7 +958,7 @@ static void _skipEqCoefficients(HANDLE_FDK_BITSTREAM hBs) {
|
||||||
uniqueEqSubbandGainsCount = FDKreadBits(hBs, 6);
|
uniqueEqSubbandGainsCount = FDKreadBits(hBs, 6);
|
||||||
if (uniqueEqSubbandGainsCount > 0) {
|
if (uniqueEqSubbandGainsCount > 0) {
|
||||||
eqSubbandGainRepresentation = FDKreadBits(hBs, 1);
|
eqSubbandGainRepresentation = FDKreadBits(hBs, 1);
|
||||||
eqSubbandGainFormat = (EQ_SUBBAND_GAIN_FORMAT)FDKreadBits(hBs, 4);
|
eqSubbandGainFormat = FDKreadBits(hBs, 4);
|
||||||
switch (eqSubbandGainFormat) {
|
switch (eqSubbandGainFormat) {
|
||||||
case GF_QMF32:
|
case GF_QMF32:
|
||||||
eqSubbandGainCount = 32;
|
eqSubbandGainCount = 32;
|
||||||
|
|
Loading…
Reference in New Issue