Commit 2ed9629a authored by vaclav's avatar vaclav
Browse files

FIX_1585_ASAN_FORMAT_SW

parent 7e3f3315
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@
#define FIX_2095_REMOVE_UNUSED_ISAR_TABLES              /* Dolby: remove unused ISAR */
#define FIX_BASOP_2560_STEREO_DFT_DEC_RESET             /* FhG: BASOP issue 2560: align reset of hStereoDft->res_gains_ind_fx[][] between BASOP and float */
#define HARMONIZE_2539_cng_energy                       /* FhG: basop issue 2539: harmonize cng_energy with its ivas derivate */
#define FIX_1585_ASAN_FORMAT_SW                         /* VA: float issue 1585: fix memory leaks with format switching */

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

+5 −0
Original line number Diff line number Diff line
@@ -456,6 +456,11 @@ ivas_error IVAS_DEC_Restart(
    hIvasDec->mode = mode;
    move16();

#ifdef FIX_1585_ASAN_FORMAT_SW
    /* set 'ivas_format' to the last one to properly close IVAS decoder handles */
    hIvasDec->st_ivas->ivas_format = hIvasDec->st_ivas->last_ivas_format;
#endif

    /* destroy Split binaural renderer (ISAR) handle */
    ivas_destroy_handle_isar( &hIvasDec->st_ivas->hSplitBinRend );