Commit 9049c1df authored by norvell's avatar norvell
Browse files

Merge branch...

Merge branch '1006-usan-nan-value-out-of-range-for-type-short-in-stereo-to-mono-decoding' into 'main'

[Non-BE] Added fix FIX_1006_PAST_DMX_NRG_ERROR

See merge request !1430
parents ff913ae4 93c67b8a
Loading
Loading
Loading
Loading
Loading

lib_com/options.h

100644 → 100755
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@
#define NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS                  /* Nokia: fix USAN error caused by non-setting of correctly the number of MASA directions in DTX */
#define NONBE_FIX_1014_1015_1016_OSBA_JBM_STEREO              /* FhG: issues #1014, #1015, #1016: fix tc buffer info update in the discrete ism renderer */
#define NONBE_FIX_987_PARAMC_BINAURAL_REVERB_RENDERING       /* FhG: issue 987: solution b: downmix HOA3 to stereo a input for the reverberator */
#define NONBE_FIX_1006_PAST_DMX_NRG_ERROR                     /* Eri/FhG: Issue 1006: Bug fix in ivas_stereo_dft_dec not replicated in ivas_stereo_dft_dec_dmx */
#define NONBE_FIX_1010_STEREO_CNG_DIV_BY_ZERO                 /* Eri: Issue 1010: Division by zero in Stereo CNG */

/* ##################### End NON-BE switches ########################### */
+4 −0
Original line number Diff line number Diff line
@@ -229,7 +229,11 @@ void stereo_dft_unify_dmx(
        if ( st0->bfi && !prev_bfi )
        {
            int16_t idx_k0, idx_k1;
#ifdef NONBE_FIX_1006_PAST_DMX_NRG_ERROR
            idx_k0 = ( hStereoDft->past_DMX_pos + STEREO_DFT_PAST_MAX - 1 ) % STEREO_DFT_PAST_MAX;
#else
            idx_k0 = ( hStereoDft->past_DMX_pos + 1 ) % STEREO_DFT_PAST_MAX;
#endif
            idx_k1 = ( idx_k0 + 1 ) % STEREO_DFT_PAST_MAX;

            /*dmx energy memory*/