From 9ab69f0c614aea8ac3b15a52533c60a82247b44d Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 8 Oct 2019 15:10:09 +0300 Subject: 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. --- libDRCdec/src/drcGainDec_process.cpp | 2 -- 1 file changed, 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; -- cgit v1.2.3