Commit 4b0682e3 authored by Jouni Paulus's avatar Jouni Paulus
Browse files

fix USAN null pointer in MASA external renderer to Ambisonics. switch...

fix USAN null pointer in MASA external renderer to Ambisonics. switch NONBE_FIX_897_USAN_WITH_MASA_RENDERING
parent 50ae27f8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@
#define NONBE_UNIFIED_DECODING_PATHS                          /* FhG: unify decoding paths   */
#define NONBE_FIX_874_OMASA_BRSW_2TD                          /* Nokia: issue 874: Fixes the crashes with the long test vectors that prompted switching to TD*/
#define NONBE_FIX_225_MASA_EXT_REND                           /* Nokia: Resolve #225: Complete MASA external renderer implementation */
#define NONBE_FIX_897_USAN_WITH_MASA_RENDERING                /* Nokia: issue #897: USAN null pointer in MASA external renderer to Ambisonics */

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

+4 −1
Original line number Diff line number Diff line
@@ -2141,10 +2141,13 @@ static void ivas_masa_ext_dirac_render_sf(
    DirAC_mem = hDirACRend->stack_mem;

    reference_power = DirAC_mem.reference_power;
#ifdef NONBE_FIX_897_USAN_WITH_MASA_RENDERING
    reference_power_smooth = ( DirAC_mem.reference_power == NULL ) ? NULL : DirAC_mem.reference_power + hSpatParamRendCom->num_freq_bands;
#else
    reference_power_smooth = DirAC_mem.reference_power + hSpatParamRendCom->num_freq_bands;
#endif
    onset_filter = DirAC_mem.onset_filter;
    onset_filter_subframe = ( DirAC_mem.onset_filter == NULL ) ? NULL : DirAC_mem.onset_filter + hSpatParamRendCom->num_freq_bands;

    coherence_flag = 1; /* There is always coherence assumed for ext rend of MASA */

    /* Construct default MASA band mapping */