Commit 7b9ab1fe authored by Sandesh Venkatesh's avatar Sandesh Venkatesh Committed by Manuel Jander
Browse files

Fix for 3GPP issue 1344: Decoder segfault for Stereo at 24.4kbps in ivas_fec_noise_filling_fx()

Link #1344
parent ff835b96
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4570,8 +4570,8 @@ static void ivas_fec_noise_filling_fx(
        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_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 */
        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 */
        move16();
    }