Commit 21208d6e authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'MC_bitrate_sw_binaural_room_10dB_crash_fix' into 'main'

dirac dec binaural function loop range corrected

See merge request !313
parents e0f38e17 20fc24a4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1438,7 +1438,7 @@ static void ivas_dirac_dec_binaural_internal(
    floatToFixed_arr32( hDiracDecBin->earlyPartEneCorrection, hDiracDecBin->earlyPartEneCorrection_fx, q_earlyPartEneCorrection, hSpatParamRendCom->num_freq_bands );
    floatToFixed_arr32( hDiracDecBin->diffuseFieldCoherence, hDiracDecBin->diffuseFieldCoherence_fx, Q31, hSpatParamRendCom->num_freq_bands );

    FOR( j = 0; j < CLDFB_NO_CHANNELS_MAX; j++ )
    FOR( j = 0; j < nBins; j++ )
    {
        f2me( hDiracDecBin->ChCrossRePrev[j], &hDiracDecBin->ChCrossRePrev_fx[j], &hDiracDecBin->ChCrossRePrev_e[j] );
        f2me( hDiracDecBin->ChCrossImPrev[j], &hDiracDecBin->ChCrossImPrev_fx[j], &hDiracDecBin->ChCrossImPrev_e[j] );
@@ -1543,7 +1543,7 @@ static void ivas_dirac_dec_binaural_internal(
        }
    }

    FOR( j = 0; j < CLDFB_NO_CHANNELS_MAX; j++ )
    FOR( j = 0; j < nBins; j++ )
    {
        hDiracDecBin->ChCrossRePrev[j] = me2f( hDiracDecBin->ChCrossRePrev_fx[j], hDiracDecBin->ChCrossRePrev_e[j] );
        hDiracDecBin->ChCrossImPrev[j] = me2f( hDiracDecBin->ChCrossImPrev_fx[j], hDiracDecBin->ChCrossImPrev_e[j] );
@@ -6013,7 +6013,7 @@ static void ivas_masa_ext_rend_parambin_internal(
    hDiracDecBin->q_earlyPartEneCorrection = q_earlyPartEneCorrection;
    floatToFixed_arr32( hDiracDecBin->earlyPartEneCorrection, hDiracDecBin->earlyPartEneCorrection_fx, q_earlyPartEneCorrection, hSpatParamRendCom->num_freq_bands );
    floatToFixed_arr32( hDiracDecBin->diffuseFieldCoherence, hDiracDecBin->diffuseFieldCoherence_fx, Q31, hSpatParamRendCom->num_freq_bands );
    FOR( j = 0; j < CLDFB_NO_CHANNELS_MAX; j++ )
    FOR( j = 0; j < nBins; j++ )
    {
        f2me( hDiracDecBin->ChCrossRePrev[j], &hDiracDecBin->ChCrossRePrev_fx[j], &hDiracDecBin->ChCrossRePrev_e[j] );
        f2me( hDiracDecBin->ChCrossImPrev[j], &hDiracDecBin->ChCrossImPrev_fx[j], &hDiracDecBin->ChCrossImPrev_e[j] );
@@ -6186,7 +6186,7 @@ static void ivas_masa_ext_rend_parambin_internal(
        }
    }

    FOR( j = 0; j < CLDFB_NO_CHANNELS_MAX; j++ )
    FOR( j = 0; j < nBins; j++ )
    {
        hDiracDecBin->ChCrossRePrev[j] = me2f( hDiracDecBin->ChCrossRePrev_fx[j], hDiracDecBin->ChCrossRePrev_e[j] );
        hDiracDecBin->ChCrossImPrev[j] = me2f( hDiracDecBin->ChCrossImPrev_fx[j], hDiracDecBin->ChCrossImPrev_e[j] );