Commit f033b217 authored by Jan Kiene's avatar Jan Kiene
Browse files

remove unnecessary double pointer which also fixes instrumented build

parent d6917ed6
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1158,17 +1158,17 @@ void TonalMdctConceal_whiten_noise_shape(
    const TONALMDCTCONC_NOISE_SHAPE_WHITENING_MODE whitening_mode
)
{
    float whitenend_noise_shape[L_FRAME16k];
    int16_t inc, start_idx, stop_idx;
    float *noiseLevelPtr, *scfs_bg, *scfs_for_shaping;
    PsychoacousticParameters **psychParams;
    HANDLE_FD_CNG_COM hFdCngCom;
    float whitenend_noise_shape[L_FRAME16k];
    float scfs_int[FDNS_NPTS];
    const PsychoacousticParameters *psychParams;

    wmops_sub_start( "apply_sns_on_noise_shape" );

    scfs_bg = &st->hTonalMDCTConc->scaleFactorsBackground[0];
    psychParams = &st->hTonalMDCTConc->psychParams;
    psychParams = st->hTonalMDCTConc->psychParams;
    hFdCngCom = st->hFdCngDec->hFdCngCom;

    inc = ( ( whitening_mode == ON_FIRST_LOST_FRAME ? st->core : st->last_core ) > TCX_20_CORE ) ? 2 : 1;
@@ -1186,7 +1186,7 @@ void TonalMdctConceal_whiten_noise_shape(
    {
        float scf[SNS_NPTS];

        sns_compute_scf( whitenend_noise_shape, *psychParams, L_frame, scf );
        sns_compute_scf( whitenend_noise_shape, psychParams, L_frame, scf );
        sns_interpolate_scalefactors( scfs_int, scf, ENC );
        sns_interpolate_scalefactors( scfs_bg, scf, DEC );
        scfs_for_shaping = &scfs_int[0];
@@ -1198,7 +1198,7 @@ void TonalMdctConceal_whiten_noise_shape(

    if ( sum_f( scfs_for_shaping, FDNS_NPTS ) > 0.0f )
    {
        sns_shape_spectrum( whitenend_noise_shape, *psychParams, scfs_for_shaping, L_frame );
        sns_shape_spectrum( whitenend_noise_shape, psychParams, scfs_for_shaping, L_frame );
        mvr2r( whitenend_noise_shape + start_idx, hFdCngCom->cngNoiseLevel, stop_idx - start_idx );
    }
    else