Commit d90ac068 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] missing check before config validation

parent de275765
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1790,7 +1790,8 @@ ivas_error IVAS_DEC_PrepareRenderer(
    }
#ifdef FIX_1419_SPATIAL_UMX

    if ( hIvasDec->st_ivas->hRenderConfig != NULL )
    if ( hIvasDec->st_ivas->hRenderConfig != NULL &&
         ( hIvasDec->st_ivas->ivas_format == MONO_FORMAT || hIvasDec->st_ivas->ivas_format == STEREO_FORMAT ) )
    {
        if ( ( error = ms_upmix_validate_config( &hIvasDec->st_ivas->hRenderConfig->mono_stereo_upmix_config,
                                                 hIvasDec->st_ivas->ivas_format,