Skip to content

Decoder crash for stereo rate switching decoding to non-MONO output configs

Git sha: 96c285ba

Using a certain rate switching pattern, the stereo BASOP decoder crashes when decoding to stereo, 7_1_4..., but not when decoding to mono.

Reproduce with this bitstream bs_stereo_rs_wb.zip or using the encoder commandline below. Switching pattern can be found here: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/blob/main/scripts/switchPaths/wb_high1.bin.

IVAS_cod_flt_ref -stereo -max_band wb scripts/switchPaths/wb_high1.bin 16 ltv16_STEREO.wav bit
IVAS_dec_fx stereo 16 bit out.wav

results in:

IVAS_dec: lib_com/basop32.c:2585: L_shl: Assertion `0' failed.

Similar for any other output config except mono. The float reference build does not crash.