Commit 371d686b authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Corrected the scaling in ivas_core_dec for output_fx_loc

parent 4111bcf1
Loading
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1626,11 +1626,8 @@ ivas_error ivas_core_dec_fx(
            exp_max = s_min( exp_max, exp_delay_buf_out );

            Copy32( output_32_fx[n], output_fx_loc, output_frame );
#ifdef FIX_856_EXTRACT_L
            Scale_sig32( output_fx_loc, output_frame, -Q11 ); /* output_fx_loc should be in Q0 when entering save_synthesis_hq_fec_fx */
#else

            Scale_sig32( output_fx_loc, output_frame, sub( exp_max, Q11 ) );
#endif
            Scale_sig( st->delay_buf_out_fx, NS2SA_FX2( st->output_Fs, DELAY_CLDFB_NS ), exp_max );
            Scale_sig( st->hHQ_core->old_out_fx + NS2SA_FX2( st->output_Fs, N_ZERO_MDCT_NS ), sub( NS2SA_FX2( st->output_Fs, PH_ECU_LOOKAHEAD_NS ), NS2SA_FX2( st->output_Fs, N_ZERO_MDCT_NS ) ), exp_max );
            Scale_sig( st->prev_synth_buffer_fx, NS2SA_FX2( 48000, L_sub( DELAY_BWE_TOTAL_NS, DELAY_CLDFB_NS ) ), sub( exp_max, st->q_prev_synth_buffer_fx ) );