Skip to content

Assertion error in decoder crash with OMASA EXT output and rateswitch

Basic info

Bug description

BASOP decoder crashes with a rateswitch item to OMASA EXT. The crash happens in frame 217 with the stack:

L_sub basop32.c:1742
L_sub basop32.c:1742
Msub_32_32 enh32.c:206
cldfbSynthesis_ivas_fx cldfb_fx.c:1176
ivas_omasa_render_objects_from_mix_fx ivas_omasa_dec_fx.c:2108
ivas_jbm_dec_tc_fx ivas_jbm_dec_fx.c:819
IVAS_DEC_GetTcSamples lib_dec_fx.c:1833
IVAS_DEC_GetSamples lib_dec_fx.c:1208
decodeG192 decoder.c:1998
main decoder.c:687

The float decoder does not crash.

Ways to reproduce

Using STV signals and the rateswitching file: omasa_2obj_techs_start_256k_2frames.bin

./IVAS_cod -ism_masa 2 2 scripts/testv/stvOMASA_2ISM_1MASA2TC48c_ISM1.csv scripts/testv/stvOMASA_2ISM_1MASA2TC48c_ISM2.csv scripts/testv/stvOMASA_2ISM_1MASA2TC48c.met -max_band fb omasa_2obj_techs_start_256k_2frames.bin 48 scripts/testv/stvOMASA_2ISM_1MASA2TC48c.wav test_0561.bs
./IVAS_dec EXT 16 test_0561.bs 0561_stvOMASA_2ISM_1MASA2TC48c.wav_omasa_2obj_techs_start_256k_2frames_48-16___EXT.wav