Commit 7173b609 authored by Arash Azizi's avatar Arash Azizi
Browse files

issue: 2557 wrapping in Switch

parent 825e43fb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3507,6 +3507,9 @@ void generate_comfort_noise_dec_hf_ivas_fx(
    Word32 **bufferReal,         /* o   : matrix to real part of input bands   bufferScale*/
    Word32 **bufferImag,         /* o   : matrix to imaginary part of input bands  bufferScale*/
    Word16 *bufferScale,         /* o   : pointer to scalefactor for real and imaginary part of input bands */
#ifdef FIX_BASOP_2457_HARM_GEN
    Decoder_State *st,
#endif // FIX_BASOP_2457_HARM_GEN
    HANDLE_FD_CNG_COM hFdCngCom, /* i/o: FD_CNG structure containing all buffers and variables  */
    const Word16 cng_coh_flag    /* i  : CNG Flag for coherence handling                        Q0*/
)
@@ -3522,6 +3525,9 @@ void generate_comfort_noise_dec_hf_ivas_fx(
    Word32 *ptr_level;
    Word32 *cngNoiseLevel;
    Word32 tmp1, tmp2;
#ifdef FIX_BASOP_2457_HARM_GEN
    HANDLE_FD_CNG_COM hFdCngCom = st->hFdCngDec->hFdCngCom;
#endif // FIX_BASOP_2457_HARM_GEN

    cngNoiseLevel = hFdCngCom->cngNoiseLevel + sub( hFdCngCom->stopFFTbin, hFdCngCom->startBand ); /*Q31 - hFdCngCom->cngNoiseLevelExp*/
    cngNoiseLevelExp = hFdCngCom->cngNoiseLevelExp;