From 18aa41a0e7f242e1dcd1b3c28eba251bc028663d Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 8 Oct 2019 15:10:29 +0300 Subject: Revert "Avoid index-out-of-bounds in prepareDrcGain" This reverts commit cc5c85dd70f04178abccfd2c5539b13e01da78d8. It seems like this isn't needed any longer on the latest upstream version. --- libDRCdec/src/drcGainDec_preprocess.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libDRCdec/src/drcGainDec_preprocess.cpp b/libDRCdec/src/drcGainDec_preprocess.cpp index 8bd41d9..c543c53 100644 --- a/libDRCdec/src/drcGainDec_preprocess.cpp +++ b/libDRCdec/src/drcGainDec_preprocess.cpp @@ -694,7 +694,6 @@ prepareDrcGain(HANDLE_DRC_GAIN_DECODER hGainDec, err = _prepareDrcCharacteristic(pDChar, pCoef, b, &nodeMod); if (err) return err; - if (seq >= 12) return DE_PARAM_OUT_OF_RANGE; /* copy a node buffer and convert from dB to linear */ pLnb->nNodes[lnbp] = fMin((int)hUniDrcGain->nNodes[seq], 16); for (i = 0; i < pLnb->nNodes[lnbp]; i++) { -- cgit v1.2.3