Commit 550558d4 authored by Manuel Jander's avatar Manuel Jander
Browse files

Fix assertion failure, issue #2614.

parent e1206992
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -107,6 +107,8 @@
#define FIX_2588_MISSING_CONDITIONS                     /* VA: Proposed fix to 2588, addition of a condition in lsf_dec */
#define FIX_BASOP_2442_MASA2TC_TO_MONO_AND_AMBI         /* Nokia: BASOP issue 2442: Increase accuracy of computations and add additional gain clamp for low energy decorrelated signal rendering. */

#define NONBE_FIX2614_LP_CNG_ASSERT

/* ##################### End NON-BE switches ########################### */

/* ################## End MAINTENANCE switches ######################### */
+3 −0
Original line number Diff line number Diff line
@@ -345,6 +345,9 @@ static void stereo_dft_generate_comfort_noise_fx(
        {
            q_cngNoiseLevel_upd = s_min( q_cngNoiseLevel_upd, add( e_norm_temp[i], norm_l( cngNoiseLevel_upd[i] ) ) );
        }
#ifdef NONBE_FIX2614_LP_CNG_ASSERT
        q_cngNoiseLevel_upd = s_min( q_cngNoiseLevel_upd, sub( 31, shr( st->hFdCngDec->bandNoiseShape_exp, 1 ) ) );
#endif
        FOR( i = 0; i < st->L_frame; i++ )
        {
            cngNoiseLevel_upd[i] = L_shl( cngNoiseLevel_upd[i], sub( q_cngNoiseLevel_upd, e_norm_temp[i] ) );