Unverified Commit cdcde447 authored by norvell's avatar norvell
Browse files

Add fix FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR to address MSAN error

parent 0c5691e6
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -80,6 +80,10 @@ int16_t hvq_pvq_bitalloc(
    int16_t num_sfm;
    int16_t bit_cost;

#ifdef FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR
    *n_sel_bands = 0;
#endif

    if ( bwidth == FB )
    {
        num_sfm = SFM_N_HARM_FB;
@@ -134,7 +138,9 @@ int16_t hvq_pvq_bitalloc(
        return 0;
    }

#ifndef FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR
    *n_sel_bands = 0;
#endif
    env_mean = 0;
    E_max = 0;
    k_max = k_start;