aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2018-12-26 17:59:23 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-26 17:59:23 -0800
commit8879fb1fd6bc6f7840b92a1bc78b33d0a3f3f9ef (patch)
tree914116bce1c4a12f1d24b7a64bf0eefc2a9b97b2 /libAACdec
parentb471c2c21574ab30b49c4ebf85699a951779700f (diff)
parent3bb4fe68a62afd3c670ad9a8cc79ac100526b561 (diff)
downloadfdk-aac-8879fb1fd6bc6f7840b92a1bc78b33d0a3f3f9ef.tar.gz
fdk-aac-8879fb1fd6bc6f7840b92a1bc78b33d0a3f3f9ef.tar.bz2
fdk-aac-8879fb1fd6bc6f7840b92a1bc78b33d0a3f3f9ef.zip
Merge "Signed Integer Overflow in CLpd_FAC_Acelp2Mdct()"
am: 3bb4fe68a6 Change-Id: Ic2b61ea47ab9fd393c0528bc64954412f759c135
Diffstat (limited to 'libAACdec')
-rw-r--r--libAACdec/src/usacdec_fac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libAACdec/src/usacdec_fac.cpp b/libAACdec/src/usacdec_fac.cpp
index 6b595d4..25d3119 100644
--- a/libAACdec/src/usacdec_fac.cpp
+++ b/libAACdec/src/usacdec_fac.cpp
@@ -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) {