mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Signed Integer Overflow in E_UTIL_preemph()" am: aea2558c50
am: b471c2c215
Change-Id: Ib6f14a5f7b33ffb8bce1a9b37531c0872eeceb2e
This commit is contained in:
commit
f69ca4c614
|
@ -359,7 +359,7 @@ typedef struct {
|
||||||
shouldBeUnion {
|
shouldBeUnion {
|
||||||
struct {
|
struct {
|
||||||
FIXP_DBL fac_data0[LFAC];
|
FIXP_DBL fac_data0[LFAC];
|
||||||
UCHAR fac_data_e[4];
|
SCHAR fac_data_e[4];
|
||||||
FIXP_DBL
|
FIXP_DBL
|
||||||
*fac_data[4]; /* Pointers to unused parts of pSpectralCoefficient */
|
*fac_data[4]; /* Pointers to unused parts of pSpectralCoefficient */
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ FIXP_DBL *CLpd_FAC_GetMemory(CAacDecoderChannelInfo *pAacDecoderChannelInfo,
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CLpd_FAC_Read(HANDLE_FDK_BITSTREAM hBs, FIXP_DBL *pFac, UCHAR *pFacScale,
|
int CLpd_FAC_Read(HANDLE_FDK_BITSTREAM hBs, FIXP_DBL *pFac, SCHAR *pFacScale,
|
||||||
int length, int use_gain, int frame) {
|
int length, int use_gain, int frame) {
|
||||||
FIXP_DBL fac_gain;
|
FIXP_DBL fac_gain;
|
||||||
int fac_gain_e = 0;
|
int fac_gain_e = 0;
|
||||||
|
|
|
@ -131,7 +131,7 @@ FIXP_DBL *CLpd_FAC_GetMemory(CAacDecoderChannelInfo *pAacDecoderChannelInfo,
|
||||||
* Always 0 for FD case.
|
* Always 0 for FD case.
|
||||||
* \return 0 on success, -1 on error.
|
* \return 0 on success, -1 on error.
|
||||||
*/
|
*/
|
||||||
int CLpd_FAC_Read(HANDLE_FDK_BITSTREAM hBs, FIXP_DBL *pFac, UCHAR *pFacScale,
|
int CLpd_FAC_Read(HANDLE_FDK_BITSTREAM hBs, FIXP_DBL *pFac, SCHAR *pFacScale,
|
||||||
int length, int use_gain, int frame);
|
int length, int use_gain, int frame);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -418,6 +418,7 @@ void CLpd_AdaptLowFreqDeemph(FIXP_DBL x[], int lg, FIXP_DBL alfd_gains[],
|
||||||
FIXP_DBL tmp_pow2[32];
|
FIXP_DBL tmp_pow2[32];
|
||||||
|
|
||||||
s = s * 2 + ALFDPOW2_SCALE;
|
s = s * 2 + ALFDPOW2_SCALE;
|
||||||
|
s = fMin(31, s);
|
||||||
|
|
||||||
k = 8;
|
k = 8;
|
||||||
i_max = lg / 4; /* ALFD range = 1600Hz (lg = 6400Hz) */
|
i_max = lg / 4; /* ALFD range = 1600Hz (lg = 6400Hz) */
|
||||||
|
|
Loading…
Reference in New Issue