Commit d90fab72 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for high MLD issue for a SBA stream

parent 55c77f8d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2614,7 +2614,7 @@ void ivas_binRenderer_fx(
    /* memory reset for the binaural output */
    FOR(chIdx = 0; chIdx < BINAURAL_CHANNELS; chIdx++)
    {
        FOR(k = 0; k < MAX_PARAM_SPATIAL_SUBFRAMES; k++)
        FOR(k = 0; k < numTimeSlots; k++)
        {
            set32_fx(Cldfb_RealBuffer_Binaural_fx[chIdx][k], 0, CLDFB_NO_CHANNELS_MAX);
            set32_fx(Cldfb_ImagBuffer_Binaural_fx[chIdx][k], 0, CLDFB_NO_CHANNELS_MAX);
+17 −0
Original line number Diff line number Diff line
@@ -5278,12 +5278,29 @@ void ivas_dirac_dec_render_sf_fx(

        /* Perform binaural rendering */
        Word16 input_q = Q6;

        IF( st_ivas->hCombinedOrientationData != NULL )
        {
            FOR( i = 0; i < 3; i++ )
            {
                scale_sig32( st_ivas->hCombinedOrientationData->Rmat_fx[st_ivas->hCombinedOrientationData->subframe_idx][i], 3, Q1 ); /* Q29 -> Q30 */
            }
        }

        ivas_binRenderer_fx( st_ivas->hBinRenderer,
                             st_ivas->hCombinedOrientationData,
                             hSpatParamRendCom->subframe_nbslots[subframe_idx],
                             Cldfb_RealBuffer_Binaural_fx, Cldfb_ImagBuffer_Binaural_fx,
                             Cldfb_RealBuffer_fx, Cldfb_ImagBuffer_fx, &input_q );

        IF( st_ivas->hCombinedOrientationData != NULL )
        {
            FOR( i = 0; i < 3; i++ )
            {
                scale_sig32( st_ivas->hCombinedOrientationData->Rmat_fx[st_ivas->hCombinedOrientationData->subframe_idx][i], 3, -Q1 ); /* Q30 -> Q29 */
            }
        }

        FOR ( Word16 idx1 = 0; idx1 < BINAURAL_CHANNELS; idx1++ )
        {
            FOR ( Word16 idx2 = 0; idx2 < MAX_PARAM_SPATIAL_SUBFRAMES; idx2++ )