Commit 88537ba3 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_1152_UNINIT_VAL_IN_ITD_VAD_COMPUTATION

parent 6bf306af
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -174,7 +174,6 @@
#define FIX_RETURN                                      /* VA: fix location of function returns */
#endif
#define FIX_1129_EXT_REND_OUTPUT_HIGH                   /* Philips: issue 1129: External renderer BINAURAL_ROOM_REVERB format output level too high compared to internal rendering output */
#define FIX_1152_UNINIT_VAL_IN_ITD_VAD_COMPUTATION      /* FhG: fix uninitialized value being used in ITD VAD mid signal computation that does not affect synthesis, but crashes BASOPs */
#define FIX_1157_OBSOLETE_DMX_TABLE                     /* FhG: remove obsolte ParamMC DMX table ivas_param_mc_dmx_fac_CICP19_4tc[] */
#define FIX_1135_EXT_RENDERER_HANDLES                   /* VA: issue 1135: Memory usage reduction in external renderer: Allocate only handles that are really needed. */
#define FIX_1159_SPLIT_RENDERING_CONFIG                 /* VA: issue 1159: Execute split rendering config only for split rendering outputs. */
+0 −4
Original line number Diff line number Diff line
@@ -288,13 +288,9 @@ static int16_t stereo_dft_enc_itd_vad(

    float Spd[STEREO_DFT_N_16k_ENC / 2 + 1];

#ifdef FIX_1152_UNINIT_VAL_IN_ITD_VAD_COMPUTATION
    /* Spd is later only used starting at itd_vad_band_tbl[0], so only compute values starting from there */
    /* -> this avoids uninitialized values in Spd_L and Spd_R at index 0 to be used */
    for ( i = itd_vad_band_tbl[0]; i < STEREO_DFT_N_16k_ENC / 2; i++ )
#else
    for ( i = 0; i <= STEREO_DFT_N_16k_ENC / 2; i++ )
#endif
    {
        Spd[i] = 0.5f * ( Spd_L[i] + Spd_R[i] );
    }