Commit 274f7207 authored by Jan Kiene's avatar Jan Kiene
Browse files

move init into else

parent 9e911547
Loading
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -434,13 +434,6 @@ void hf_synth_amr_wb(
        }
    }

#ifdef FIX_1532_MSAN_ERR_AMR_FIRST_FRAME_IS_SID
    /* Initialize to fix clang-18 sanitizer complaint */
    for ( i = 0; i < NB_SUBFR; ++i )
    {
        HF_corr_gain[i] = 1.0f;
    }
#endif
    if ( core_brate == ACELP_23k85 )
    {
        for ( i = 0; i < NB_SUBFR; i++ )
@@ -448,6 +441,16 @@ void hf_synth_amr_wb(
            HF_corr_gain[i] = 2 * HP_gain[hf_gain[i]];
        }
    }
#ifdef FIX_1532_MSAN_ERR_AMR_FIRST_FRAME_IS_SID
    else
    {
        /* Initialize to fix clang-18 sanitizer complaint */
        for ( i = 0; i < NB_SUBFR; ++i )
        {
            HF_corr_gain[i] = 1.0f;
        }
    }
#endif

    /* inverse DCT transform of HF excitation */
    set_f( exc16k, 0.0f, L_FRAME16k );