Commit 6840c7b3 authored by Jan Kiene's avatar Jan Kiene
Browse files

use direct check for NULL instead, old fix was incorrect

parent d406776d
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -422,14 +422,10 @@ ivas_error ivas_td_binaural_renderer_unwrap_fx(
            move16();
            tmp_CombinedOrient_subframe_idx = hCombinedOrientationData->subframe_idx;
            move16();
#ifdef FIX_2458_USAN_NULLPTR_WITH_ZERO_OFFSET
            Quaternions = Quaternions + tmp_CombinedOrient_subframe_idx;
            Pos = Pos + tmp_CombinedOrient_subframe_idx;
#endif
        }

#ifdef FIX_2458_USAN_NULLPTR_WITH_ZERO_OFFSET
        IF( NE_32( ( error = TDREND_Update_listener_orientation_fx( hBinRendererTd, tmp_headRotEnabled, Quaternions, Pos ) ), IVAS_ERR_OK ) )
        IF( NE_32( ( error = TDREND_Update_listener_orientation_fx( hBinRendererTd, tmp_headRotEnabled, ( Quaternions != NULL ) ? &Quaternions[tmp_CombinedOrient_subframe_idx] : NULL, ( Pos != NULL ) ? &Pos[tmp_CombinedOrient_subframe_idx] : NULL ) ), IVAS_ERR_OK ) )
#else
        IF( NE_32( ( error = TDREND_Update_listener_orientation_fx( hBinRendererTd, tmp_headRotEnabled, &Quaternions[tmp_CombinedOrient_subframe_idx], &Pos[tmp_CombinedOrient_subframe_idx] ) ), IVAS_ERR_OK ) )
#endif