Commit 002745f9 authored by vaclav's avatar vaclav
Browse files

Remove "sba_order < 0" conditions

parent d81961ed
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -64,19 +64,19 @@ void ivas_sba_config(
    int16_t *element_mode          /* o  : element mode of the core coder           */
)
{
#ifndef FIX_993_REMOVE_SBA_GET_ORDER
    if ( ( sba_order < 0 ) && ( nb_channels < 0 ) )
    {
        assert( 0 && "Either order or number of channels must be positive" );
    }
    else if ( sba_order < 0 )
    {
#ifdef FIX_993_REMOVE_SBA_GET_ORDER
        assert( !"SBA order cannot be negative!" );
#else
        sba_order = ivas_sba_get_order( nb_channels, sba_planar );
#endif
    }
    else if ( nb_channels < 0 )
#else
    if ( nb_channels < 0 )
#endif
    {
        nb_channels = ivas_sba_get_nchan( sba_order, sba_planar );
    }