Commit 325eaa12 authored by hsd's avatar hsd
Browse files

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

[remove] TD_REND_FIX_DIV_BY_ZERO. Once/If UBSAN builds will be added, this will show up again and can be fixed by the experts.
parent b22db897
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_REND_FIX_DIV_BY_ZERO                         /* FhG: avoid division by zero in sincResample fn */
#define TD_TDREND_FIX_NULLPTR_ACCESS                    /* FhG: avoid nullptr access in ivas_rend_TDObjRendOpen */

/* ################## End DEVELOPMENT switches ######################### */
+0 −7
Original line number Diff line number Diff line
@@ -182,13 +182,6 @@ static void sincResample(
    const float *p_sinc_forward;
    const float *p_sinc_backward;

#ifdef TD_REND_FIX_DIV_BY_ZERO
    /* avoid division by 0 */
    if ( 0 == length_out )
    {
        return;
    }
#endif /* TD_REND_FIX_DIV_BY_ZERO */

    /* Compute fractional time step */
    t_step = (float) ( length_in ) / (float) ( length_out );