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

Merge branch '3gpp_issue_939_v2' into 'main'

Add saturation at other points for issue 939

See merge request !680
parents 9d9ed4dc ce297cfd
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -480,11 +480,11 @@ void E_LPC_f_isp_a_conversion( const Word16 *isp, Word16 *a, const Word16 m )
    }
    WHILE( t0n == 0 || t0p == 0 ); /*in case of overflow, recalculate coefficients*/

    a[nc] = round_fx( t0 ); /* from Q23 to Q12 and * 0.5 */
    a[nc] = round_fx_sat( t0 ); /* from Q23 to Q12 and * 0.5 */
    move16();
    /* a[m] = isp[m-1] */
    t0 = L_mult( a[0], isp[m - 1] ); /* from Q15 to Q12          */
    a[m] = round_fx( t0 );
    a[m] = round_fx_sat( t0 );
    move16();

    return;