Loading lib_com/ari_hm.c +6 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,12 @@ void tcx_hm_modify_envelope( const int16_t L_frame /* i : number of spectral lines */ ) { #ifdef FIX_966_VAR_OVERFLOW_IN_HARM_MODEL_ARI int16_t h, x; int32_t k; #else int16_t k, h, x; #endif Word16 inv_shape[2 * kTcxHmParabolaHalfWidth + 1]; /* Q15 */ if ( gain == 0 ) Loading Loading @@ -301,7 +306,7 @@ void tcx_hm_modify_envelope( ++h; #ifdef FIX_966_VAR_OVERFLOW_IN_HARM_MODEL_ARI tmp = ( h * lag ); k = (int16_t) ( tmp >> fract_res ); k = tmp >> fract_res ; #else k = ( h * lag ) >> fract_res; #endif Loading Loading
lib_com/ari_hm.c +6 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,12 @@ void tcx_hm_modify_envelope( const int16_t L_frame /* i : number of spectral lines */ ) { #ifdef FIX_966_VAR_OVERFLOW_IN_HARM_MODEL_ARI int16_t h, x; int32_t k; #else int16_t k, h, x; #endif Word16 inv_shape[2 * kTcxHmParabolaHalfWidth + 1]; /* Q15 */ if ( gain == 0 ) Loading Loading @@ -301,7 +306,7 @@ void tcx_hm_modify_envelope( ++h; #ifdef FIX_966_VAR_OVERFLOW_IN_HARM_MODEL_ARI tmp = ( h * lag ); k = (int16_t) ( tmp >> fract_res ); k = tmp >> fract_res ; #else k = ( h * lag ) >> fract_res; #endif Loading