aboutsummaryrefslogtreecommitdiffstats
path: root/libDRCdec
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-10-08 15:10:09 +0300
committerMartin Storsjo <martin@martin.st>2019-10-08 15:10:09 +0300
commit9ab69f0c614aea8ac3b15a52533c60a82247b44d (patch)
tree43e9c29729011322bff6000b370d2e4b53c9a1c9 /libDRCdec
parentd3e9ff8fe4ba8cc9c77dc8d12ea5ce1db7c3e795 (diff)
downloadfdk-aac-9ab69f0c614aea8ac3b15a52533c60a82247b44d.tar.gz
fdk-aac-9ab69f0c614aea8ac3b15a52533c60a82247b44d.tar.bz2
fdk-aac-9ab69f0c614aea8ac3b15a52533c60a82247b44d.zip
Revert "Avoid index-out-of-bounds in processDrcTime"
This reverts commit 3b9dd6b614edbfcb0cc31e176a0702c7a084d268. It seems like this isn't needed any longer on the latest upstream version.
Diffstat (limited to 'libDRCdec')
-rw-r--r--libDRCdec/src/drcGainDec_process.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libDRCdec/src/drcGainDec_process.cpp b/libDRCdec/src/drcGainDec_process.cpp
index 1894f47..70c9533 100644
--- a/libDRCdec/src/drcGainDec_process.cpp
+++ b/libDRCdec/src/drcGainDec_process.cpp
@@ -308,8 +308,6 @@ processDrcTime(HANDLE_DRC_GAIN_DECODER hGainDec, const int activeDrcIndex,
pLinearNodeBuffer[pActiveDrc->lnbIndexForChannel[c][lnbIx] + b]);
else
pLnbPrevious = pDummyLnb;
- if (pLnbPrevious->nNodes[lnbIx] <= 0 || pLnbPrevious->nNodes[lnbIx] > 16)
- return DE_NOT_OK;
nodePrevious =
pLnbPrevious->linearNode[lnbIx][pLnbPrevious->nNodes[lnbIx] - 1];
nodePrevious.time -= hGainDec->frameSize;