Commit f5a665ba authored by vaclav's avatar vaclav
Browse files

FIX_1585_ASAN_FORMAT_SW

parent 1e1c2fbf
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@
#define FIX_FMSW_DEC_2                                  /* float issue 1575: fix crash for format switching when bitsream starts with EVS */
#define FIX_1548_HARMONIZE_NON_DIEGETIC_PANNING_LAW     /* Orange: float issue 1548: Harmonize non diegetic panning law in ISM and renderers */
#define FIX_FLOAT_1578_OMASA_REND_SPIKES                /* Nokia: Float issue 1578: Fix spikes and collapsed perception in OMASA/MASA rendering to FOA/HOA */
#define FIX_1585_ASAN_FORMAT_SW                         /* VA: float issue 1585: fix memory leaks with format switching */

/* ##################### End NON-BE switches ########################### */

+5 −0
Original line number Diff line number Diff line
@@ -397,6 +397,11 @@ ivas_error IVAS_DEC_Restart(
#endif
    hIvasDec->mode = mode;

#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 );