Commit a79f18fc authored by norvell's avatar norvell
Browse files

Disable assert that is hit with -10 dB with DEBUGGING active

parent 70066e7e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -58,6 +58,9 @@

#ifdef DEBUGGING

#define DISABLE_DFT_STEREO_ASSERT               /* This assert is hit for -10 dB tests/codec_be_on_mr_nonselection/test_param_file.py::test_param_file_tests[stv-stereo at 32 kbps, 48kHz in, 48kHz out, DTX on, random FER at 5%, bandwidth switching] */


/*#define DEBUG_MODE_INFO*/                         /* output most important parameters to the subdirectory "res/" */
#ifdef DEBUG_MODE_INFO
/*#define DEBUG_MODE_ACELP*/                    /* output most important ACELP core parameters to the subdirectory "res/" */
+2 −0
Original line number Diff line number Diff line
@@ -140,9 +140,11 @@ void stereo_dft_quantize_res_gains(
    }

#ifdef DEBUGGING
#ifndef DISABLE_DFT_STEREO_ASSERT
    /* the following assertions should be satisfied by the input data: */
    assert( 1 - gg * gg + EPSILON >= rr * rr / 2 );
    assert( gg <= 1 );
#endif
#endif

    gg = min( gg, 1 - EPSILON );