Commit 11548ec8 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 994: High energy in high frequency part of transient for ISM3

parent 4e6c6d71
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3089,6 +3089,16 @@ void GenShapedSHBExcitation_ivas_fx(
        {
            excNoisyEnv[i] = mac_r( L_tmp, csfilt_num2[0], shl( excTmp2[i], sub( Q_excTmp2, *Q_bwe_exc ) ) );
            move16();
            /* Work-around to avoid 0s for very small value*/
            test();
            test();
            test();
            test();
            if ( excNoisyEnv[i] == 0 && ( L_tmp != 0 || ( csfilt_num2[0] != 0 && excTmp2[i] != 0 ) ) )
            {
                excNoisyEnv[i] = 1;
                move16();
            }
            /* excNoisyEnv : Q_excTmp2,
             *mem_csfilt: Q_excTmp2+16, excTmp2: Q_excTmp2, csfilt_num2[0] Q_excTmp2  */
            L_tmp = L_mult( excNoisyEnv[i], neg_csfilt_den2[1] ); /* Q_excTmp2 + 16 */