Commit a4d1c545 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Modify q_old_out_diff calculation in IMDCT_ivas_fx for TCX-20 and not TCX-only frames.

parent c9ceee3a
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3385,8 +3385,13 @@ void IMDCT_ivas_fx(

                Word16 diff = sub( q_tmp_fx_32, q_win );
#ifdef FIX_1348_BIT_PRECISION_IMPROVEMENT_DYNAMIC_QOLD
                // Word16 q_old_out_diff = s_max( sub( q_tmp_fx_32, *q_old_out_fx ), 0 );
                Word16 q_old_out_diff = sub( q_tmp_fx_32, *q_old_out_fx );
                IF( q_old_out_diff < 0)
                {
                    Scale_sig( old_out_fx, L_frame, q_old_out_diff ); 
                    *q_old_out_fx = add( *q_old_out_fx, q_old_out_diff );
                    q_old_out_diff = 0;
                }
#endif
                FOR( Word16 ind = 0; ind < L_frame; ind++ )
                {