Commit 0b8af2ec authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_IGF_NOISE_REPETITION

parent ab5fe956
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -148,7 +148,6 @@
#define FIX_124_DONT_ALLOC_PLCINFO_IN_IVAS              /* Issue 124: do not allocate unused plc struct in IVAS modes which is only used in EVS mono */
#define SBA_BR_SWITCHING                                /* Issue 114: Changes for sba bit rate switching*/
#define FIX_ITD                                         /* Contribution 16: TD renderer ITD improvement and code cleanup */
#define FIX_IGF_NOISE_REPETITION                        /* Issue 182: fix repetition of same noise in IGF */
#define FIX_126_MDFT_FB_STATIC_MEM                      /* Issue 126: reduce static mem consumption of the MDFT FB for non-SBA formats */
#define FIX_I214_CLIPPING_STANDALONE_REND               /* Issue 214: TD standalone renderer does not handle clipping */
#define FIX_I218_PARAMISM_NOISY_SPEECH                  /* Issue 218: Fix noisy speech buffer in ParamISM */
+0 −13
Original line number Diff line number Diff line
@@ -1309,7 +1309,6 @@ void decoder_tcx_noisefilling(
        IGFDecReplicateTCX10State( st->hIGFDec );
    }

#ifdef FIX_IGF_NOISE_REPETITION
    if ( st->element_mode != EVS_MONO )
    {
        if ( bfi )
@@ -1321,22 +1320,10 @@ void decoder_tcx_noisefilling(
            nf_seed = *st->hIGFDec->igfData.igfInfo.nfSeed;
        }
    }
#endif

    if ( st->igf )
    {
#ifdef FIX_IGF_NOISE_REPETITION
        *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( nf_seed * 31821L + 13849L );
#else
        if ( bfi && st->element_mode != EVS_MONO )
        {
            *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( st->seed_tcx_plc * 31821L + 13849L );
        }
        else
        {
            *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( nf_seed * 31821L + 13849L );
        }
#endif
    }

    return;