Commit 15465509 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

port float MR 1498

parent 868d9c15
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@
#define FIX_1003_PARAMISM_BINAURAL_RECONFIG_USAN              /* FhG: fix for #1003: fix USAN caused by ParamISM reconfig                    */
#define FIX_1001_ARI_HM_OVERFLOW                              /* FhG: (no changes needed in BASOP) fix for undef behaviour in in the harmonic TCX model arithmetic coder */
#define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE                  /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */
#define NON_BE_FIX_EVS_USAN_ERR_IN_WAVEADJUST                 /* FhG: address issue 1037 */

/* #################### End BASOP porting switches ############################ */

+16 −1
Original line number Diff line number Diff line
@@ -930,7 +930,22 @@ void concealment_decode_fix(
            /* sign randomization */
            FOR( i = 0; i < N; i++ )
            {
#ifdef NON_BE_FIX_EVS_USAN_ERR_IN_WAVEADJUST
				Word16 rnd;
				rnd = own_random_fix( seed );
				IF ( GE_16(rnd,0) )
				{
					sign  = 1;
					move16();
				}
				ELSE IF( LT_16(rnd, 0) )
				{
					sign = -1;
					move16();
				}
#else
                sign = add( shl( shr( own_random_fix( seed ), 15 ), 1 ), 1 );
#endif
				if ( EQ_16( sign, -1 ) )
                {
                    invkoef[i] = L_negate( invkoef[i] );