mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Integer overflow fix in InvMdctTransformLowDelay_fdk()" am: d2be744af2
am: 6e4fe2e06b
am: 69e052a1af
Change-Id: I17eca04703b565d22659b6a3f8d08e16a818aedc
This commit is contained in:
commit
bf8adf21ad
|
@ -216,6 +216,7 @@ int InvMdctTransformLowDelay_fdk(FIXP_DBL *mdctData, const int mdctData_e,
|
|||
int scale = mdctData_e + MDCT_OUT_HEADROOM -
|
||||
LDFB_HEADROOM; /* The LDFB_HEADROOM is compensated inside
|
||||
multE2_DinvF_fdk() below */
|
||||
int i;
|
||||
|
||||
/* Select LD window slope */
|
||||
switch (N) {
|
||||
|
@ -261,10 +262,11 @@ int InvMdctTransformLowDelay_fdk(FIXP_DBL *mdctData, const int mdctData_e,
|
|||
}
|
||||
|
||||
if (gain != (FIXP_DBL)0) {
|
||||
scaleValuesWithFactor(mdctData, gain, N, scale);
|
||||
} else {
|
||||
scaleValues(mdctData, N, scale);
|
||||
for (i = 0; i < N; i++) {
|
||||
mdctData[i] = fMult(mdctData[i], gain);
|
||||
}
|
||||
}
|
||||
scaleValuesSaturate(mdctData, N, scale);
|
||||
|
||||
/* Since all exponent and factors have been applied, current exponent is zero.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue