Commit 66b05a07 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '913-decoder-crash-in-icbwe-for-low-level-signal' into 'main'

Fix for decoder crash in icBWE for low level signal

Closes #913

See merge request !627
parents 1ae80775 ada8c29b
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1392,7 +1392,7 @@ void stereo_icBWE_dec_fx(
                tmp = shl( tmp, 2 );
                icbweM2Ref_fx = Sqrt16( sub( 16384, tmp ), &temp1_fx );
                icbweM2Ref_fx = BASOP_Util_Divide1616_Scale( icbweM2Ref_fx, ratio_L_fx, &temp2_fx );
                icbweM2Ref_fx = shl( icbweM2Ref_fx, add( temp1_fx, sub( temp2_fx, 1 ) ) ); // Q14
                icbweM2Ref_fx = shl_sat( icbweM2Ref_fx, add( temp1_fx, sub( temp2_fx, 1 ) ) ); // Q14
            }
            ELSE
            {
@@ -1421,7 +1421,7 @@ void stereo_icBWE_dec_fx(
                tmp = shl( tmp, 2 );
                icbweM2Ref_fx = Sqrt16( sub( 16384, tmp ), &temp1_fx );
                icbweM2Ref_fx = BASOP_Util_Divide1616_Scale( icbweM2Ref_fx, sub( 32767, ratio_L_fx ), &temp2_fx );
                icbweM2Ref_fx = shl( icbweM2Ref_fx, add( temp2_fx, sub( temp1_fx, 1 ) ) ); // Q14
                icbweM2Ref_fx = shl_sat( icbweM2Ref_fx, add( temp2_fx, sub( temp1_fx, 1 ) ) ); // Q14
            }
            ELSE
            {