Commit 1a983c58 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for LTV crash observed for encoder in CI

- xes Encoder original crash for test stream ltv_basop_encoder-OMASA 2TC 3ISM at br sw techs 13.2 to 512 kbps start 24.4 kbps, 32kHz in, 48kHz out, BINAURAL out
- Cause: In inov_encode, the h2 buffer (derived from h1) exceeds Q12 range (>8.0f) in float.
- Fix: Added saturation when scaling h2 to Q12
parent 8e892511
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -587,7 +587,7 @@ Word16 inov_encode_ivas_fx(
    set16_fx( y2, 0, L_SUBFR );

    Qh2 = sub( 14, norm_s( h2[0] ) );
    scale_sig( h2, L_SUBFR, sub( Q12, Qh2 ) );
    Scale_sig( h2, L_SUBFR, sub( Q12, Qh2 ) );

    IF( !Opt_AMR_WB )
    {