Commit c50d44e4 authored by Manuel Jander's avatar Manuel Jander
Browse files

Fix another crash from issue #2206 case.

parent 098aca91
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -723,7 +723,11 @@ void stereo_switching_enc_fx(
            hCPE->hStereoDft->output_mem_dmx_12k8_fx[i] = L_shr( Mpy_32_16_r( hCPE->hStereoDft->win_12k8_fx[STEREO_DFT_OVL_12k8 - 1 - i], sts[0]->buf_speech_enc[L_FRAME32k + L_FRAME - STEREO_DFT_OVL_12k8 + i] ), sub( 16, sts[0]->exp_buf_speech_enc ) ); /* Q15 */
            move32();
        }
#ifdef NONBE_FIX_ISSUE_2206
        Word16 q_dmx = q_inp;
#else
        Word16 q_dmx = Q15;
#endif
        move16();
        /* update DFT synthesis overlap memory @16kHz, primary channel only */
        L_lerp_fx( hCPE->hStereoDft->output_mem_dmx_fx, hCPE->hStereoDft->output_mem_dmx_16k_fx, STEREO_DFT_OVL_16k, dft_ovl, &q_dmx );