Commit 40b1c2e8 authored by multrus's avatar multrus
Browse files

make sure powerSpec_e is always initialized in core_signal_analysis_high_bitrate_fx()

parent b0d052d7
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@
#define HARM_2456_APPLY_SCALE                           /* FhG basop issue 2456: Harmonize apply_scale_ind(), apply_scale_ivas_fx() */
#define HARM_2454_TCX_RES_Q_SPEC                        /* FhG: harmonization of tcx_res_Q_spec_fx() and tcx_res_Q_spec_ivas_fx() */
#define FIX_FLOAT_1535_ARI_RES_Q_CLEANUP                /* FhG: remove dead code from tcx_ari_res_Q_spec() */
#define FIX_BASOP_2470_POWER_SPEC_E_INIT                /* FhG: make sure powerSpec_e is always initialized in core_signal_analysis_high_bitrate_fx() */

/* #################### End BE switches ################################## */

+5 −0
Original line number Diff line number Diff line
@@ -74,6 +74,11 @@ void core_signal_analysis_high_bitrate_fx(
    (void) vad_hover_flag;
    (void) last_element_mode;

#ifdef FIX_BASOP_2470_POWER_SPEC_E_INIT
    powerSpec_e = 0; /* for TCX5, this is not initialized in AnalyzePowerSpectrum_fx(), but still passed to ProcessIGF_fx() */
    move16();
#endif

    left_overlap = -1;
    move16();
    right_overlap = -1;