Commit e6c50249 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 03eadf8a
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -8050,7 +8050,12 @@ static ivas_error initMasaExtRenderer(
        return error;
    }

    IF( NE_32( ( error = getAudioConfigNumChannels( outConfig, &hMasaExtRend->nchan_output ) ), IVAS_ERR_OK ) )
    IF( EQ_32( outConfig, IVAS_AUDIO_CONFIG_LS_CUSTOM ) )
    {
        hMasaExtRend->nchan_output = add( inputMasa->base.ctx.pCustomLsOut->num_spk, inputMasa->base.ctx.pCustomLsOut->num_lfe );
        move16();
    }
    ELSE IF( NE_32( ( error = getAudioConfigNumChannels( outConfig, &hMasaExtRend->nchan_output ) ), IVAS_ERR_OK ) )
    {
        return error;
    }