Commit f07a1257 authored by eichenseer's avatar eichenseer
Browse files

Merge branch '422-missing-fix-for-noisy-speech-buffer-in-paramism' into 'main'

[Non-BE] 422 Missing fix for noisy speech buffer in ParamISM

See merge request !575
parents 49653d6f 64cf5add
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@

#define PARAMMC_SHORT_ENC_MDFT                          /* FhG: Issue 410: complexity optimization for parametric Multichannel modes */

#define FIX_422                                         /* FhG: Issue 422: re-introduce fix for noisy speech buffer in ParamISM */
/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
#endif
+4 −0
Original line number Diff line number Diff line
@@ -429,7 +429,11 @@ void ivas_param_ism_compute_noisy_speech_flag(
    /* 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_422
        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;
        }