Commit f750b4e3 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_1437_fix' into 'main'

Fix for 3GPP issue 1437: Decoder crash for McMASA 5.1 at 32kbps JBM decoding...

See merge request !1333
parents afb109a5 4daa1e06
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -4565,13 +4565,13 @@ static void ivas_fec_noise_filling_fx(
    pt6 = &p_mdct_ola[0];
    FOR( k = 0; k < tmp_fx; k++ )
    {
        L_tmp = L_mult( *sinq_tab, *sinq_tab ); /*Q30 */
        L_tmp = L_mult( *sinq_tab, *sinq_tab ); /*Q31 */
        sinq_tab++;
        q2 = round_fx( L_sub( 2147483647, L_tmp ) );                                                  /*Q15 */
        q1 = round_fx( L_tmp );                                                                       /*Q15 */
        L_tmp = L_mult( ( *pt1 ), q1 );                                                               /*Qsynth+16 */
        L_tmp = L_add( L_tmp, L_shr( Mpy_32_16_1( L_deposit_h( *pt6++ ), q2 ), Q_old_out ) ); /*Qsynth+16 */
        ( *pt1++ ) = round_fx( L_tmp );                                                       /*Qsynth */
        L_tmp = L_add_sat( L_tmp, L_shr_sat( Mpy_32_16_1( L_deposit_h( *pt6++ ), q2 ), Q_old_out ) ); /*Qsynth+16 */
        ( *pt1++ ) = round_fx_sat( L_tmp );                                                           /*Qsynth */
        move16();
    }