Commit 3a185145 authored by norvell's avatar norvell
Browse files

Merge branch '2079_ref_PortMR2056_TD_renderer_OOB' into 'ivas-float-update'

[Non-BE][Renderer Non-BE][Split Non-BE]Add fix NONBE_1296_TDREND_ITD_OUT_OF_BOUNDS_ACCESS to port MR2056 - float part

See merge request !2337
parents 93c42ffe f67852be
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -203,6 +203,7 @@
#define FIX_1376_MISSING_ISM_METADATA                   /* FhG: IVAS_rend: throw error if there exists an ISM input without a corresponding metadata file path */
#define FIX_1385_INIT_IGF_STOP_FREQ                     /* FhG: Initialize infoIGFStopFreq in init_igf_dec() */
#define FIX_1387_INIT_PRM_SQQ                           /* FhG: initialize pointer prm_sqQ, which might be uninitialized in case of bfi == 1 */
#define NONBE_1296_TDREND_ITD_OUT_OF_BOUNDS_ACCESS      /* Eri: issue 1296: ITD resampling can occasionally read out of bounds, especially when the requested subframes are short (1.25 ms). Seen for headtracking+JBM. */

/* #################### End BASOP porting switches ############################ */

+2 −1
Original line number Diff line number Diff line
@@ -216,8 +216,9 @@ static void sincResample(
            p_forward++;
            p_backward--;
        }
#ifndef NONBE_1296_TDREND_ITD_OUT_OF_BOUNDS_ACCESS
        tmp += ( *p_forward ) * ( *p_sinc_forward ); /* Integer index always rounded down --> 4 steps backward, 5 steps forward */

#endif
        output[i] = tmp;

        /* Advance fractional time */