Commit 27270f5b authored by hsd's avatar hsd
Browse files

[remove] TD_TDREND_FIX_NULLPTR_ACCESS. Once/If UBSAN builds will be added,...

[remove] TD_TDREND_FIX_NULLPTR_ACCESS. Once/If UBSAN builds will be added, this will show up again and can be fixed by the experts.
parent 325eaa12
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -170,7 +170,6 @@
#ifdef FIX_I109_ORIENTATION_TRACKING
#define OTR_REFERENCE_VECTOR_TRACKING                 /* FhG: enables the reference position orientation tracking mode */
#endif
#define TD_TDREND_FIX_NULLPTR_ACCESS                    /* FhG: avoid nullptr access in ivas_rend_TDObjRendOpen */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+0 −8
Original line number Diff line number Diff line
@@ -575,16 +575,8 @@ ivas_error ivas_td_binaural_open_ext(
    transport_config = rendAudioConfigToIvasAudioConfig( inConfig );
#endif
    ivas_format = ( getAudioConfigType( inConfig ) == IVAS_REND_AUDIO_CONFIG_TYPE_CHANNEL_BASED ) ? MC_FORMAT : ISM_FORMAT;
#ifdef TD_TDREND_FIX_NULLPTR_ACCESS
    if ( inConfig == IVAS_REND_AUDIO_CONFIG_LS_CUSTOM )
    {
        hTransSetup.ls_azimuth = customLsInput->ls_azimuth;
        hTransSetup.ls_elevation = customLsInput->ls_elevation;
    }
#else
    hTransSetup.ls_azimuth = customLsInput->ls_azimuth;
    hTransSetup.ls_elevation = customLsInput->ls_elevation;
#endif /* TD_TDREND_FIX_NULLPTR_ACCESS */

    return ivas_td_binaural_open_unwrap( &pTDRend->hHrtfTD, outFs, nchan_transport, ivas_format, transport_config, hTransSetup, &pTDRend->hBinRendererTd, &pTDRend->binaural_latency_ns );
}