Commit 0c144928 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 957: Assertion error in BWE of SCE decoding in OMASA

[x] Adding saturation as suggested by PC group
parent 8a05cf9b
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3005,7 +3005,8 @@ void hq_generic_decoding_fx(
    {
        FOR( tmp3_fx = 5120; tmp3_fx > 1024; tmp3_fx -= 512 )
        {
            L_tmp1 = L_shl( Mult_32_16( *pit1_fx, tmp3_fx ), 5 ); /*15 + 5 + 10 -15 */
            /* Adding saturation suggested as fix for issue #957 */
            L_tmp1 = L_shl_sat( Mult_32_16( *pit1_fx, tmp3_fx ), 5 ); /*15 + 5 + 10 -15 */
            *pit1_fx-- = L_tmp1;
            move32();
        }