Unverified Commit dc96f9e8 authored by norvell's avatar norvell
Browse files

Limit scaling to initialized values under FIX_BASOP_2358_SCALING_OOB

parent 9cf09cac
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ CFLAGS += -Wunused-but-set-variable
LDLIBS   += -lm

# Clang sanitizer compiler options
CCCLANG = clang
CCCLANG = clang-18
ifeq "$(CLANG)" "0"
CC       = $(CCCLANG)
endif
+8 −0
Original line number Diff line number Diff line
@@ -434,7 +434,11 @@ ivas_error ivas_td_binaural_renderer_unwrap_fx(
        {
            Word16 i;

#ifdef FIX_BASOP_2358_SCALING_OOB
            FOR( i = 0; i < hBinRendererTd->NumOfSrcs; ++i )
#else
            FOR( i = 0; i < MAX_OUTPUT_CHANNELS; ++i )
#endif
            {
#ifdef FIX_BASOP_2358_SCALING_OOB
                scale_sig32( output_fx[i], output_frame, -4 ); // Q11 - 4 = Q7
@@ -448,7 +452,11 @@ ivas_error ivas_td_binaural_renderer_unwrap_fx(
                return error;
            }

#ifdef FIX_BASOP_2358_SCALING_OOB
            FOR( i = 0; i < hBinRendererTd->NumOfSrcs; ++i )
#else
            FOR( i = 0; i < MAX_OUTPUT_CHANNELS; ++i )
#endif
            {
#ifdef FIX_BASOP_2358_SCALING_OOB
                scale_sig32( output_fx[i], output_frame, 4 ); // Q7 + 4 = Q11