Commit 12071b80 authored by Vidhya V P's avatar Vidhya V P
Browse files

Added a check for bitrate when DTX enabled

parent 5c0f6730
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -390,9 +390,13 @@ ivas_error ivas_sba_enc_reconfigure(

#endif
#ifdef SBA_BR_SWITCHING_RECONFIG
        /* FB mixer handle */
        if ( ( sba_mode_old != st_ivas->sba_mode ) || ( nchan_transport_old != st_ivas->nchan_transport ) )
        {
            if ( hEncoderConfig->Opt_DTX_ON && ( st_ivas->nchan_transport  > 2 ) )
            {
                return IVAS_ERR_DTX_NOT_SUPPORTED;
            }
            /* FB mixer handle */
            if ( st_ivas->sba_mode == SBA_MODE_SPAR )
            {
                // VE: TBV whether 'hFbMixer' can be reused