Commit d674b7d8 authored by Manuel Jander's avatar Manuel Jander
Browse files

Correct assert checking for overflow for negative values.

parent 6d0bec24
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3314,12 +3314,12 @@ void IMDCT_ivas_fx(
                {
#ifdef FIX_1348_BIT_PRECISION_IMPROVEMENT_DYNAMIC_QOLD
                    old_out_fx[ind] = extract_l( L_shr( old_out_fx_32[ind], q_old_out_diff ) );
                    assert( extract_h( L_shr( old_out_fx_32[ind], q_old_out_diff ) ) == 0 );
                    assert( extract_h( L_shr( old_out_fx_32[ind], q_old_out_diff ) ) == 0 || extract_h( L_shr( old_out_fx_32[ind], q_old_out_diff ) ) == -1 );
#else
                    old_out_fx[ind] = extract_l( L_shr( old_out_fx_32[ind], diff ) );
#endif
                    xn_buf_fx[ind] = extract_l( L_shr( xn_buf_fx_32[ind], diff ) );
                    assert( extract_h( L_shr( xn_buf_fx_32[ind], diff ) ) == 0 );
                    assert( extract_h( L_shr( xn_buf_fx_32[ind], diff ) ) == 0 || extract_h( L_shr( xn_buf_fx_32[ind], diff ) ) == -1 );
                    move16();
                    move16();
                }