Commit 50eb7ce3 authored by vaillancour's avatar vaillancour
Browse files

Fixes for 48 stv48c_sw_164_1280_48kHz.*.COD

parent 1862f347
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -364,8 +364,11 @@ void preecho_sb_fx(
        FOR (i = 1; i < len3xLp20; i++)
        {
            tmp_fx1 = shr(*fxptr2, qmemp1); /*q-1 to avoisd saturation in energy*/
#ifdef BASOP_NOGLOB
            tmp_fxL1 = L_mac0_sat(tmp_fxL1, tmp_fx1, tmp_fx1);
#else
            tmp_fxL1 = L_mac0(tmp_fxL1, tmp_fx1, tmp_fx1);

#endif
            if(*fxptr2 **(fxptr2-1) <= 0)
            {
                sptr1_loc = add(sptr1_loc,1);
+4 −0
Original line number Diff line number Diff line
@@ -306,7 +306,11 @@ static void getEnvelope(
    /* No need for PTR_INIT for powerSpec[i+n2] as we continue from the previous loop */
    FOR (i = 0; i < n1; i++)
    {
#ifdef BASOP_NOGLOB
        sum = L_add_sat(sum, powerSpec[i+n2]);
#else
        sum = L_add(sum, powerSpec[i+n2]);
#endif
        tmp = Mpy_32_16_1(sum/*Q31,powerSpec_exp*/,level/*Q12*/); /*Q28,powerSpec_exp*/
        envelope[i]/*Q28,powerSpec_exp*/ = Mpy_32_16_1(tmp/*Q28,powerSpec_exp*/, InvIntTable[i+nSecondHalfFilterLength]/*Q15*/);
        move32();