Commit dcbb024d authored by premathasara's avatar premathasara
Browse files

Ensure freedom of core-coder VAD decision only occurs at the correct bitrates

parent 7bb94b29
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -836,6 +836,7 @@ typedef enum {
#define SBA_MIN_BRATE_HOA                       IVAS_256k
#define SBA_NHARM_HOA3                          16
#define SBA_T_DESIGN_11_SIZE                    70
#define SBA_DTX_BITRATE_THRESHOLD               IVAS_80k

typedef enum 
{
+1 −1
Original line number Diff line number Diff line
@@ -396,7 +396,7 @@ ivas_error front_vad_spar(
    hFrontVad = hSpar->hFrontVad;
    st = hSpar->hCoreCoderVAD;

    if ( hEncoderConfig->Opt_DTX_ON && hEncoderConfig->ivas_total_brate <= IVAS_80k )
    if ( hEncoderConfig->Opt_DTX_ON && hEncoderConfig->ivas_total_brate <= SBA_DTX_BITRATE_THRESHOLD )
    {
        /*------------------------------------------------------------------*
         * Initialization
+2 −2
Original line number Diff line number Diff line
@@ -310,8 +310,8 @@ ivas_error ivas_spar_enc(

    *nb_bits_metadata = hMetaData->nb_bits_tot;

    /* temp hack to not force IVAS front pre-proc decision for higher bitrates */
    if ( hEncoderConfig->ivas_total_brate > IVAS_64k || hEncoderConfig->Opt_DTX_ON == 0 )
    /* Force IVAS front pre-proc decision for higher bitrates */
    if ( hEncoderConfig->ivas_total_brate > SBA_DTX_BITRATE_THRESHOLD || hEncoderConfig->Opt_DTX_ON == 0 )
    {
        st_ivas->hSpar->front_vad_flag = 0;
    }