[Non-BE] Added fix FIX_1006_PAST_DMX_NRG_ERROR
requested to merge 1006-usan-nan-value-out-of-range-for-type-short-in-stereo-to-mono-decoding into main
- Related issues: #1006 (closed)
- Requested reviewers: @kiene
Reason why this change is needed
The DMX energy memory is updated based on the wrong frames which may be zero, may result in NaN in output buffer.
Description of the change
There was a bugfix to these lines in ivas_stereo_dft_dec.c:
idx_k0 = ( hStereoDft->past_DMX_pos + STEREO_DFT_PAST_MAX - 1 ) % STEREO_DFT_PAST_MAX;
idx_k1 = ( idx_k0 + 1 ) % STEREO_DFT_PAST_MAX;
This was however not moved to the corresponding lines in ivas_stereo_dft_dec_dmx.c.
Affected operating points
- Stereo to MONO decoding with frame losses.
Related to #1006 (closed)