[non-BE] fix #722 memory leak for paramupmix when switching mc bitrates
Start
- Related issues: #722 (closed)
- Requested reviewers: bayers
Reason why this change is needed
This MR fixes the memory leak issue in Multi-channel decoder with bitrate switching.
Description of the change
The fix can be explained in two parts as follows
---In bitrate switching scenario where bitrate switches from MCPARAMUPMIX to non-MCPARAMUPMIX to MCPARAMUPMIX mode, MCPARAMUPMIX memory was getting allocated multiple times (without freeing previously allocated memory). This MR frees the memory when bitrate switches from MCPARAMUPMIX to non-MCPARAMUPMIX modes.
--- High rate LFE was not getting re-initialized when bitrate switches from MCPARAMUPMIX to non-MCPARAMUPMIX to MCPARAMUPMIX mode. This MR fixes the LFE re-initialization by freeing LFE memory and re-allocating it during bitrate switching.
Affected operating points
7.1.4 160kbps with bitrate switching
No change to bitstream
Produced bitstream is non-BE compared to previous state.
Job Log: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/153637