mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-17 03:30:35 +01:00
Merge "Signed Integer Overflow in CLpd_FAC_Acelp2Mdct()" am: 3bb4fe68a6
am: 8879fb1fd6 Change-Id: I955c6e7d250ac52986aeb0879dad976dd62d3fab
This commit is contained in:
commit
350e4ffea2
@ -538,7 +538,7 @@ INT CLpd_FAC_Acelp2Mdct(H_MDCT hMdct, FIXP_DBL *output, FIXP_DBL *_pSpec,
|
|||||||
if (total_gain != (FIXP_DBL)0) {
|
if (total_gain != (FIXP_DBL)0) {
|
||||||
scaleValuesWithFactor(pSpec, total_gain, tl, spec_scale[0] + scale);
|
scaleValuesWithFactor(pSpec, total_gain, tl, spec_scale[0] + scale);
|
||||||
} else {
|
} else {
|
||||||
scaleValues(pSpec, tl, spec_scale[0] + scale);
|
scaleValuesSaturate(pSpec, tl, spec_scale[0] + scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
pOut1 += fl / 2 - 1;
|
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) {
|
if (total_gain != (FIXP_DBL)0) {
|
||||||
scaleValuesWithFactor(pSpec, total_gain, tl, spec_scale[w] + scale);
|
scaleValuesWithFactor(pSpec, total_gain, tl, spec_scale[w] + scale);
|
||||||
} else {
|
} else {
|
||||||
scaleValues(pSpec, tl, spec_scale[w] + scale);
|
scaleValuesSaturate(pSpec, tl, spec_scale[w] + scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noOutSamples <= nrSamples) {
|
if (noOutSamples <= nrSamples) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user