Commit e38fd537 authored by multrus's avatar multrus
Browse files

amend patch

parent c85fd4b9
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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 )
@@ -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