Commit b079126b authored by multrus's avatar multrus
Browse files

basop issue 2391: make sure hq_generic_offset is initialized inside hq_hr_dec_fx()

parent c0947d4a
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@
#define FIX_2319_CLDFB_INIT_FLAGS                       /* FhG: basop issue 2319: init hs->flags during openCldfb(), to avoid reading of uninitialized memory */
#define FIX_BASOP_2357_OBJECT_EDIT_MSAN                 /* Nokia: basop issue 2357: initialize missing exponents in object edit */
#define FIX_BASOP_2354_MSAN_DIFF_Q_VALUE                /* Nokia: Initialize Q value of diffuseness in rendering to Q30 */
#define FIX_2391_INIT_HQ_GENERIC_OFFSET                 /* FhG/Eri: basop issue 2391: make sure hq_generic_offset is initialized inside hq_hr_dec_fx() */

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

+4 −1
Original line number Diff line number Diff line
@@ -435,7 +435,10 @@ void hq_hr_dec_fx(
    move16();

    HQ_DEC_HANDLE hHQ_core = st_fx->hHQ_core;

#ifdef FIX_2391_INIT_HQ_GENERIC_OFFSET
    hq_generic_offset = 0;
    move16();
#endif
    move16();

    Q_audio = 0; /* to avoid compilation warnings */