Commit 143a5ccc authored by eichenseer's avatar eichenseer
Browse files

Merge branch '218-fix-noisy-speech-buffer-in-paramism' into 'main'

Fix issue 218

See merge request !279
parents b3044dae 0040a19b
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@
#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 */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+4 −0
Original line number Diff line number Diff line
@@ -175,7 +175,11 @@ ivas_error ivas_ism_enc(
        /* For the current frame, make a decision based on some core-coder flags */
        if ( st_ivas->hSCE[0]->hCoreCoder[0]->flag_noisy_speech_snr && st_ivas->hSCE[1]->hCoreCoder[0]->flag_noisy_speech_snr )
        {
#ifdef FIX_I218_PARAMISM_NOISY_SPEECH
            if ( st_ivas->hSCE[0]->hCoreCoder[0]->vad_flag || st_ivas->hSCE[1]->hCoreCoder[0]->vad_flag )
#else
            if ( st_ivas->hSCE[0]->hCoreCoder[0]->vad_flag && st_ivas->hSCE[1]->hCoreCoder[0]->vad_flag )
#endif
            {
                st_ivas->hDirAC->hParamIsm->noisy_speech_buffer[i] = 0;
            }