Commit 60d5c9f2 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_BASOP_812_NAN_COHSNR

parent 0f247365
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -170,7 +170,6 @@
#define FIX_1123_PARAMBIN_16BIT_ROM                     /* FhG,Nok: issue 1123: update ParamBin ROM tables and scripts to generate 16 bit tables instead of float */
#define FIX_RETURN                                      /* VA: fix location of function returns */
#endif
#define FIX_BASOP_812_NAN_COHSNR                        /* FhG: BASOP issue 812: fix nan values in sparse frames for cohSNR value in ITD estimation*/

/* #################### End BE switches ################################## */

+0 −4
Original line number Diff line number Diff line
@@ -1051,18 +1051,14 @@ void stereo_dft_enc_compute_itd(
    }

    /*calculate total cohSNR for frame in dB*/
#ifdef FIX_BASOP_812_NAN_COHSNR
    if ( mEr > 1.0f )
    {
#endif
        cohSNR = 20 * log10f( mEr );
#ifdef FIX_BASOP_812_NAN_COHSNR
    }
    else
    {
        cohSNR = 0;
    }
#endif

    /* collect UNCLR classifier parameters */
    {