Commit 1ed3f9a6 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] output config validation when FIX_1419_SPATIAL_UMX is undefined

parent b872b07a
Loading
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3200,16 +3200,19 @@ static ivas_error doSanityChecks_IVAS(
         output_config == IVAS_AUDIO_CONFIG_ISM2 ||
         output_config == IVAS_AUDIO_CONFIG_ISM3 ||
         output_config == IVAS_AUDIO_CONFIG_ISM4 ||
#ifndef FIX_1419_SPATIAL_UMX
         output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED ||
         output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ||
#endif
         output_config == IVAS_AUDIO_CONFIG_MASA1 ||
         output_config == IVAS_AUDIO_CONFIG_MASA2 )
#endif
        {
            return IVAS_ERROR( IVAS_ERR_INVALID_OUTPUT_FORMAT, "Incorrect output configuration specified!" );
        }
#ifndef FIX_1419_SPATIAL_UMX
        if ( ( st_ivas->ivas_format == MONO_FORMAT || st_ivas->ivas_format == STEREO_FORMAT ) &&
             ( output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ) )
        {
            return IVAS_ERROR( IVAS_ERR_INVALID_OUTPUT_FORMAT, "Incorrect output configuration specified!" );
        }
#endif
#ifndef FIX_1419_MONO_STEREO_UMX
    }
#endif