Commit 5a939588 authored by Vidhya V P's avatar Vidhya V P
Browse files

Moved the previous fix under the switch

[x] moved the fix into the switch SBA_BR_SWITCHING_2
parent ddbf0485
Loading
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -522,7 +522,22 @@ static ivas_error ivas_spar_enc_process(
            hQMetaData->q_direction->cfg.nbands = orig_dirac_bands;
        }
    }
#ifndef SBA_BR_SWITCHING_2
     /*-----------------------------------------------------------------------------------------*
     * 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 );
#endif
    /*-----------------------------------------------------------------------------------------*
     * Set SPAR bitrates
     *-----------------------------------------------------------------------------------------*/
@@ -548,7 +563,7 @@ static ivas_error ivas_spar_enc_process(
        }
#endif
    }
    
#ifdef SBA_BR_SWITCHING_2
    /*-----------------------------------------------------------------------------------------*
     * Covariance process
     *-----------------------------------------------------------------------------------------*/
@@ -563,7 +578,7 @@ static ivas_error ivas_spar_enc_process(
    }

    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 );

#endif
    nchan_transport = st_ivas->nchan_transport;

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