Commit 5c66dac3 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1763: Rate switching MASA with LTV signal has a couple of...

Fix for 3GPP issue 1763: Rate switching MASA with LTV signal has a couple of worse spikes in BASOP decoder

Link #1763
parent 9d277af8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1759,8 +1759,8 @@ void interpolate_3_over_1_allpass_fx32(
    {
        mem_temp = out[i]; // Qx
        move32();
        out[i] = L_sub_sat( Mpy_32_16_1( L_add_sat( mem[12], mem[11] ), 18768 ), Mpy_32_16_1( L_add_sat( mem_temp, mem[10] ), 2424 ) ); // Qx
        // 0.572769 in Q15 -> 18768, 0.074005 in Q15 -> 2424
        out[i] = L_sub_sat( Mpy_32_16_1( L_add_sat( mem[12], mem[11] ), 18768 ), Mpy_32_16_1( L_add_sat( mem_temp, mem[10] ), 2425 ) ); // Qx
        // 0.572769 in Q15 -> 18768, 0.074005 in Q15 -> 2425
        move32();
        mem[10] = mem[11]; // Qx
        move32();
+2 −1
Original line number Diff line number Diff line
@@ -1181,8 +1181,9 @@ void ivas_wb_tbe_dec_fx(
        }
        ELSE IF( EQ_32( st_fx->output_Fs, 48000 ) )
        {
            Scale_sig( hBWE_TD->mem_resamp_HB_fx, INTERP_3_1_MEM_LEN, sub( Qx, hBWE_TD->prev_Qx ) );
            Copy_Scale_sig_32_16( hBWE_TD->mem_resamp_HB_fx_32, hBWE_TD->mem_resamp_HB_fx, INTERP_3_1_MEM_LEN, sub( Qx, Q11 ) );
            ivas_interpolate_3_over_1_allpass_fx( synth, L_FRAME16k, upsampled_synth, hBWE_TD->mem_resamp_HB_fx );
            Copy_Scale_sig_16_32_no_sat( hBWE_TD->mem_resamp_HB_fx, hBWE_TD->mem_resamp_HB_fx_32, INTERP_3_1_MEM_LEN, sub( Q11, Qx ) );
            Copy( upsampled_synth, synth, L_FRAME48k );
        }
    }