Crash in stereo_dft_dec_fx() for OMASA JBM rateswitch
Basic info
- Encoder (float): d18cbee3
- Decoder: 6f1fdf53
- Related issues: #989 (closed), #990 (closed)
Bug description
In ISM4 OMASA decoding with JBM and bitrate switching the decoder crashes in frame 1841 with the stack
L_shl basop32.c:2582
L_shl basop32.c:2582
L_shr basop32.c:2703
stereo_dft_dec_fx ivas_stereo_dft_dec_fx.c:2261
ivas_cpe_dec_fx ivas_cpe_dec_fx.c:755
ivas_jbm_dec_tc_fx ivas_jbm_dec.c:816
IVAS_DEC_GetTcSamples lib_dec_fx.c:1440
IVAS_DEC_GetSamples lib_dec_fx.c:1076
IVAS_DEC_VoIP_GetSamples lib_dec_fx.c:2943
decodeVoIP decoder.c:2392
main decoder.c:600
Ways to reproduce
Item is from LTV. Bitrate switching sequence is omasa_4obj_techs_start_16k4_20frames.bin.
Float encoding:
ivas-float-reference/IVAS_cod -ism_masa 4 2 ivas-pc-testfiles/ltv48_OMASA_4ISM_2TC_ISM1.csv ivas-pc-testfiles/ltv48_OMASA_4ISM_2TC_ISM2.csv ivas-pc-testfiles/ltv48_OMASA_4ISM_2TC_ISM3.csv ivas-pc-testfiles/ltv48_OMASA_4ISM_2TC_ISM4.csv ivas-pc-testfiles/ltv48_OMASA_4ISM_2TC.met -max_band fb omasa_4obj_techs_start_16k4_20frames.bin 48 test.bs
Network simulator using the delay profile from float main:
scripts/tools/Darwin/networkSimulator_g192 scripts/dly_error_profiles/dly_error_profile_5.dat test.bs test.bs_netsim tracefile_sim 2 0
BASOP decoder:
ivas-basop/IVAS_dec -Tracefile tracefile_dec -VOIP BINAURAL 48 test.bs_netsim test.wav