Skip to content

[Non BE] Add FIX_499_DFT_STEREO_PLC: wrong memory addressed in DFT stereo residual PLC

There is a bug causing the issue in #499 (closed). The PLC for the DFT stereo residual relies on the energy of the past down-mix. When calculating the energy in hStereoDft->past_dmx_nrg the memory pointers are incorrectly advanced and do not point to the previous DFT subframes. In the case in #499 (closed), the wrongly addressed subframes happen to be zero (unused) at the time of the bad frame, which leads to a division by zero in the gain adjustment calculation. The fix FIX_499_DFT_STEREO_PLC correct the pointer addressing to the previous two subframes.

Affects BE of DFT Stereo frame error conditions, since the correct frames are now used in the energy calculation.

Merge request reports

Loading