Commit 249586c6 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

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

parent 35a568e1
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8435,7 +8435,11 @@ static ivas_error initMasaExtRenderer(
        return error;
    }

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