Commit 077e7f34 authored by Manuel Jander's avatar Manuel Jander
Browse files

Initialize hBWE_TD->shb_inv_filt_mem_q, fixes LTV crash.

parent 6bc2f63e
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -434,6 +434,10 @@ void InitSWBencBuffer_fx(
    set16_fx( hBWE_TD->lsp_shb_slow_interpl_fx, 0, LPC_SHB_ORDER );
    set16_fx( hBWE_TD->lsp_shb_fast_interpl_fx, 0, LPC_SHB_ORDER );
    set16_fx( hBWE_TD->shb_inv_filt_mem_fx, 0, LPC_SHB_ORDER );
#ifdef NONBE_FIX_ISSUE_2206_SWB_EXPERIMENT
    hBWE_TD->shb_inv_filt_mem_q = Q15;
    move16();
#endif
    set16_fx( hBWE_TD->lsp_shb_spacing_fx, 3277 /* 0.1f in Q15 */, 3 );
    set16_fx( hBWE_TD->elliptic_bpf_2_48k_mem_fx_Q, 0, 4 );

@@ -4855,6 +4859,11 @@ static void gainFrSmooth_En_fx(
        hBWE_TD->prev_frGainAtten = 1;
        move16();
        set16_fx( hBWE_TD->shb_inv_filt_mem_fx, 0, LPC_SHB_ORDER );
#ifdef NONBE_FIX_ISSUE_2206_SWB_EXPERIMENT
        hBWE_TD->shb_inv_filt_mem_q = Q15;
        move16();
#endif

    }

    /* Estimate the moving average LSP spacing */