Commit 6bff9a6b authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1148: crash at 32kbps

[x] link #1148
[x] When an unvoiced frame is coded at 32 kbps, bwe_exc_fx is not defined and hence should not be updated. Check added for update to happen.
parent 2f76d0ad
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -107,4 +107,5 @@
#define FIX_ISSUE_1122                          /* Ittiam: Fix issue 1122: corrected incorrect scaling of a buffer leading to incorrect metadata bits */
#define FIX_1132_STACK_CORRUPTION               /* Stack corruption issue due of extending index access*/
#define FIX_ISSUE_1092                          /* Ittiam: Fix for Issue 1092: BASOP asserts in stereo fx encoder for selection test inputs*/
#define FIX_ISSUE_1148
#endif
+7 −0
Original line number Diff line number Diff line
@@ -480,7 +480,14 @@ void encod_unvoiced_ivas_fx(
        voice_factors_fx[i_subfr / L_SUBFR] = 0;
        move16();

#ifdef FIX_ISSUE_1148
        if ( st_fx->hBWE_TD != NULL )
        {
            interp_code_5over2_fx( &exc_fx[i_subfr], &bwe_exc_fx[i_subfr * HIBND_ACB_L_FAC], L_SUBFR );
        }
#else
        interp_code_5over2_fx( &exc_fx[i_subfr], &bwe_exc_fx[i_subfr * HIBND_ACB_L_FAC], L_SUBFR );
#endif

        /*-----------------------------------------------------------------*
         * Synthesize speech to update mem_syn[].