Commit fdfd1c02 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for crash observed with complexity measurement pipeline for stereodownmix

parent d6e8c019
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -114,12 +114,12 @@ void phase_dispersion(
        scale2 = getScaleFactor32( x32, L_subfr );
        FOR( i = 0; i < L_subfr / 2 - 1; i++ )
        {
            code[i] = round_fx_sat( L_shl_sat( x32[2 * i + 0], scale2 ) );
            code[i] = round_fx_sat( L_shl_sat( x32[2 * i], scale2 ) );
            code[L_subfr - 1 - i] = round_fx_sat( L_shl_sat( x32[2 * i + 3], scale2 ) );
        }

        code[L_subfr / 2 - 1] = round_fx( L_shl( x32[L_subfr - 2], scale2 ) );
        code[L_subfr / 2] = round_fx( L_shl( x32[1], scale2 ) );
        code[L_subfr / 2 - 1] = round_fx_sat( L_shl_sat( x32[L_subfr - 2], scale2 ) );
        code[L_subfr / 2] = round_fx_sat( L_shl_sat( x32[1], scale2 ) );

        j = sub( j, scale2 );