Merge "Signed Integer Overflow in CLpd_FAC_Acelp2Mdct()"

am: 3bb4fe68a6

Change-Id: Ic2b61ea47ab9fd393c0528bc64954412f759c135
This commit is contained in:
Jean-Michel Trivi 2018-12-26 17:59:23 -08:00 committed by android-build-merger
commit 8879fb1fd6
1 changed files with 2 additions and 2 deletions

View File

@ -538,7 +538,7 @@ INT CLpd_FAC_Acelp2Mdct(H_MDCT hMdct, FIXP_DBL *output, FIXP_DBL *_pSpec,
if (total_gain != (FIXP_DBL)0) {
scaleValuesWithFactor(pSpec, total_gain, tl, spec_scale[0] + scale);
} else {
scaleValues(pSpec, tl, spec_scale[0] + scale);
scaleValuesSaturate(pSpec, tl, spec_scale[0] + scale);
}
pOut1 += fl / 2 - 1;
@ -627,7 +627,7 @@ INT CLpd_FAC_Acelp2Mdct(H_MDCT hMdct, FIXP_DBL *output, FIXP_DBL *_pSpec,
if (total_gain != (FIXP_DBL)0) {
scaleValuesWithFactor(pSpec, total_gain, tl, spec_scale[w] + scale);
} else {
scaleValues(pSpec, tl, spec_scale[w] + scale);
scaleValuesSaturate(pSpec, tl, spec_scale[w] + scale);
}
if (noOutSamples <= nrSamples) {