Commit 550e40e7 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1387: Stereo Encoder 32 kbps: Rattling artifcats in 16 kHz LTVs

Link #1387
parent ca8df168
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -827,8 +827,8 @@ ivas_error ivas_compute_core_buffers_fx(
            /* no resampling needed, only delay adjustment to account for the FIR resampling delay */
            delay = NS2SA_FX2( input_Fs, DELAY_FIR_RESAMPL_NS );
            move16();
            Copy( st->mem_decim16k_fx + delay, new_inp_16k_fx - sub( lMemRecalc, add( delay, L_FILT16k ) ), delay );             /* Q(-1) */
            Copy( signal_in_fx - lMemRecalc, new_inp_16k_fx - add( lMemRecalc, L_FILT16k ), add( input_frame, lMemRecalc ) );    /* st->q_inp */
            Copy( st->mem_decim16k_fx + delay, new_inp_16k_fx - add( lMemRecalc, sub( delay, L_FILT16k ) ), delay );             /* Q(-1) */
            Copy( signal_in_fx - lMemRecalc, new_inp_16k_fx - sub( lMemRecalc, L_FILT16k ), add( input_frame, lMemRecalc ) );    /* st->q_inp */
            Copy( signal_in_fx + sub( sub( input_frame, lMemRecalc ), shl( delay, 1 ) ), st->mem_decim16k_fx, shl( delay, 1 ) ); /* st->q_inp */
        }
        ELSE IF( EQ_32( input_Fs, 32000 ) || EQ_32( input_Fs, 48000 ) )