Commit 10163a34 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_939_fix' into 'main'

Fix for issue 939: Decoder crash for Stereo EVS Downmix with FER and...

See merge request !676
parents c56c3d90 e15cfafe
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -448,13 +448,13 @@ void E_LPC_f_isp_a_conversion( const Word16 *isp, Word16 *a, const Word16 m )
            /* a[i] = 0.5*(f1[i] + f2[i]) */
            t0 = L_add( f1[i], f2[i] ); /* f1[i] + f2[i]             */
            t0 = L_shl( t0, q );
            a[i] = round_fx( t0 ); /* from Q23 to Q12 and * 0.5 */
            a[i] = round_fx_sat( t0 ); /* from Q23 to Q12 and * 0.5 */
            move16();

            /* a[j] = 0.5*(f1[i] - f2[i]) */
            t0 = L_sub( f1[i], f2[i] ); /* f1[i] - f2[i]             */
            t0 = L_shl( t0, q );
            a[j] = round_fx( t0 ); /* from Q23 to Q12 and * 0.5 */
            a[j] = round_fx_sat( t0 ); /* from Q23 to Q12 and * 0.5 */
            move16();

            j = sub( j, 1 );