Commit b04d03c2 authored by Manuel Jander's avatar Manuel Jander
Browse files

Remove rescale to Q4 of sidNoiseEstLp and sidNoiseEst. Remove duplicated call...

Remove rescale to Q4 of sidNoiseEstLp and sidNoiseEst. Remove duplicated call to ApplyFdCng_fx() (issue #2578).
parent 3448f78d
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -688,6 +688,7 @@ ivas_error acelp_core_dec_fx(

                    ApplyFdCng_fx( psyn_fx, st->Q_syn, NULL, 0, realBuffer_fx, imagBuffer_fx, NULL, st, 0, ( st->coder_type == AUDIO && !st->GSC_noisy_speech ) );

#ifndef NONBE_FIX_2575
                    Word16 new_sidNoiseEstExp = 31 - Q4;
                    move16();
                    Scale_sig32( st->hFdCngDec->hFdCngCom->sidNoiseEstLp, NPART, sub( st->hFdCngDec->hFdCngCom->sidNoiseEstExp, new_sidNoiseEstExp ) ); // Q(31-sidNoiseEstExp)
@@ -700,9 +701,10 @@ ivas_error acelp_core_dec_fx(
                    st->hFdCngDec->hFdCngCom->cngNoiseLevelExp = new_cngNoiseLevelExp;
                    move16();

                    test();
                    ApplyFdCng_fx( psyn_fx, st->Q_syn, NULL, 0, realBuffer_fx, imagBuffer_fx, NULL, st, 0, ( EQ_16( st->coder_type, AUDIO ) && !st->GSC_noisy_speech ) );

#else
                    test();
#endif
                    IF( st->hFdCngDec->hFdCngCom->cngNoiseLevelExp < 0 )
                    {
                        Scale_sig32( st->hFdCngDec->hFdCngCom->cngNoiseLevel, FFTCLDFBLEN, st->hFdCngDec->hFdCngCom->cngNoiseLevelExp ); // Q(31-cngNoiseLevelExp)