Skip to content

OMASA BASOP bitstream crashing float decoder (ivas_mdct_core_invQ)

Basic info

Bug description

The bitstream from BASOP encoder crashes float decoder with the stack

ivas_mdct_core_invQ ivas_mdct_core_dec.c:614
ivas_mdct_core_invQ ivas_mdct_core_dec.c:614
stereo_mdct_core_dec ivas_stereo_mdct_core_dec.c:251
ivas_core_dec ivas_core_dec.c:397
ivas_cpe_dec ivas_cpe_dec.c:420
ivas_jbm_dec_tc ivas_jbm_dec.c:373
IVAS_DEC_GetTcSamples lib_dec.c:1037
IVAS_DEC_GetSamples lib_dec.c:870
decodeG192 decoder.c:2020
main decoder.c:704

Both ivas-float-update and current float main crash with the BASOP-produced bitstream. The BASOP decoder does not crash.

Further observations is that this happens with the encoder built under Linux, but not with one built under ARM-Mac.

Ways to reproduce

Using STVs.

BASOP encoder:

IVAS_cod -q -no_delay_cmp -ism_masa 3  2 scripts/testv/stvOMASA_3ISM_1MASA2TC48c_ISM1.csv scripts/testv/stvOMASA_3ISM_1MASA2TC48c_ISM2.csv scripts/testv/stvOMASA_3ISM_1MASA2TC48c_ISM3.csv scripts/testv/stvOMASA_3ISM_1MASA2TC48c.met -max_band wb  64000 16 scripts/testv/stvOMASA_3ISM_1MASA2TC16c.wav bs

Float decoder

IVAS_dec -q -no_delay_cmp BINAURAL 48 bs stvOMASA_3ISM_1MASA2TC16c.wav_64k_16-48___BINAURAL-no_delay_cmp.wav