Commit ddbf0485 authored by Vidhya V P's avatar Vidhya V P
Browse files

Fix for gap while switching from 24.4 to 32 Kbps

parent bfc59e74
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -523,21 +523,6 @@ static ivas_error ivas_spar_enc_process(
        }
    }

    /*-----------------------------------------------------------------------------------------*
     * Covariance process
     *-----------------------------------------------------------------------------------------*/

    for ( i = 0; i < nchan_inp; i++ )
    {
        for ( j = 0; j < nchan_inp; j++ )
        {
            cov_real[i][j] = hSpar->hMdEnc->cov_real[i][j];
            cov_dtx_real[i][j] = hSpar->hMdEnc->cov_dtx_real[i][j];
        }
    }

    ivas_enc_cov_handler_process( hSpar->hCovEnc, ppIn_FR_real, ppIn_FR_imag, cov_real, cov_dtx_real, hSpar->hFbMixer->pFb, 0, hSpar->hFbMixer->pFb->filterbank_num_bands, nchan_inp, dtx_vad, transient_det );

    /*-----------------------------------------------------------------------------------------*
     * Set SPAR bitrates
     *-----------------------------------------------------------------------------------------*/
@@ -564,6 +549,21 @@ static ivas_error ivas_spar_enc_process(
#endif
    }
    
    /*-----------------------------------------------------------------------------------------*
     * Covariance process
     *-----------------------------------------------------------------------------------------*/

    for ( i = 0; i < nchan_inp; i++ )
    {
        for ( j = 0; j < nchan_inp; j++ )
        {
            cov_real[i][j] = hSpar->hMdEnc->cov_real[i][j];
            cov_dtx_real[i][j] = hSpar->hMdEnc->cov_dtx_real[i][j];
        }
    }

    ivas_enc_cov_handler_process( hSpar->hCovEnc, ppIn_FR_real, ppIn_FR_imag, cov_real, cov_dtx_real, hSpar->hFbMixer->pFb, 0, hSpar->hFbMixer->pFb->filterbank_num_bands, nchan_inp, dtx_vad, transient_det );

    nchan_transport = st_ivas->nchan_transport;

    /*-----------------------------------------------------------------------------------------*