Commit 9ff058c3 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] MASA number of output channels not set correctly for Custom LS output

parent db0c9373
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@

#define NONBE_1244_FIX_SWB_BWE_MEMORY                   /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */ 
#define NONBE_1122_KEEP_EVS_MODE_UNCHANGED              /* FhG: Disables fix for issue 1122 in EVS mode to keep BE tests green. This switch should be removed once the 1122 fix is added to EVS via a CR.  */
#define NONBE_FIX_1326_MASA_EXTREND_CUSTOMLS_OUT        /* FhG: Fix crash for external renderer MASA to custom LS rendering, number of output channels not set correctly */

/* ##################### End NON-BE switches ########################### */

+8 −1
Original line number Diff line number Diff line
@@ -8503,6 +8503,13 @@ static ivas_error initMasaExtRenderer(
        return error;
    }

#ifdef NONBE_FIX_1326_MASA_EXTREND_CUSTOMLS_OUT
    if ( outConfig == IVAS_AUDIO_CONFIG_LS_CUSTOM )
    {
        hMasaExtRend->nchan_output = inputMasa->base.ctx.pCustomLsOut->num_spk + inputMasa->base.ctx.pCustomLsOut->num_lfe;
    }
    else
#endif
        if ( ( error = getAudioConfigNumChannels( outConfig, &hMasaExtRend->nchan_output ) ) != IVAS_ERR_OK )
    {
        return error;