Commit 71f0b774 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

return an error if split rendering is specified without a spatial upmix

parent dd821543
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -489,6 +489,11 @@ ivas_error ms_upmix_validate_config(
    /* skip validation if non spatial; values aren't used */
    if ( !pMsUpmixConfig->spatialEnabled )
    {
        if ( outConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || outConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM )
        {
            return IVAS_ERROR( IVAS_ERR_INVALID_RENDER_CONFIG, "Configuring mono/stereo upmix for split rendering requires a spatial upmix" );
        }

        return IVAS_ERR_OK;
    }