aboutsummaryrefslogtreecommitdiffstats
path: root/libDRCdec
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-10-08 15:10:27 +0300
committerMartin Storsjo <martin@martin.st>2019-10-08 15:10:27 +0300
commit0eb81391457a5ce5163c6865db98bfd93731b6aa (patch)
treef9ac0fceb4785757fe35b022490c296288a6f0ba /libDRCdec
parent9ab69f0c614aea8ac3b15a52533c60a82247b44d (diff)
downloadfdk-aac-0eb81391457a5ce5163c6865db98bfd93731b6aa.tar.gz
fdk-aac-0eb81391457a5ce5163c6865db98bfd93731b6aa.tar.bz2
fdk-aac-0eb81391457a5ce5163c6865db98bfd93731b6aa.zip
Revert "Avoid index-out-of-bounds in prepareDrcGain"
This reverts commit 5ab5496af95674e9ee741cba178d5b981bccbe45. It seems like this isn't needed any longer on the latest upstream version.
Diffstat (limited to 'libDRCdec')
-rw-r--r--libDRCdec/src/drcGainDec_preprocess.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/libDRCdec/src/drcGainDec_preprocess.cpp b/libDRCdec/src/drcGainDec_preprocess.cpp
index 514e977..8bd41d9 100644
--- a/libDRCdec/src/drcGainDec_preprocess.cpp
+++ b/libDRCdec/src/drcGainDec_preprocess.cpp
@@ -676,7 +676,6 @@ prepareDrcGain(HANDLE_DRC_GAIN_DECODER hGainDec,
nDrcBands = pActiveDrc->bandCountForChannelGroup[g];
for (b = 0; b < nDrcBands; b++) {
DRC_ERROR err = DE_OK;
- if (gainSetIndex >= 12) return DE_PARAM_OUT_OF_RANGE;
GAIN_SET* pGainSet = &(pCoef->gainSet[gainSetIndex]);
int seq = pGainSet->gainSequenceIndex[b];
DRC_CHARACTERISTIC* pDChar = &(pGainSet->drcCharacteristic[b]);