Skip to content

Potential crash in stereo when frames are lost

The problem happens when running the stereo mode of the codec with simulation of frame lost "-fec 15". The decoder crashes and an assertion triggered: “Assertion failed: (st->next_bit_pos - start_bit_pos + rest_bits <= 0), function RCcontextMapping_decode2_no_mem_s17_LCS, file lib_dec/ACcontextMapping_dec.c, line 634.”.

The solution would be to remove the dependency of "last_tdm_LRTD_flag" in the following condition "if ( hCPE->element_mode == IVAS_CPE_TD && last_tdm_LRTD_flag != hCPE->hStereoTD->tdm_LRTD_flag )" of both IVAS_cpe_(dec/enc).c