Skip to content

Assert error in stereo DFT decoding of CPE in OMASA rate switching

Basic info

Bug description

Decoding of OMASA content with bitrate switching raises assert in CPE decoding.

Possibly related issue: #957 (closed)

Ways to reproduce

Item from LTV, using the rate switching sequence: omasa_brsw.bin

Float encoder:

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_brsw.bin 48 ivas-pc-testfiles/ltv48_OMASA_4ISM_2TC.wav test.bs

The output mode is not critical as the problem is in the core decoding.

Float decoder:

ivas-float-reference/IVAS_dec BINAURAL 48 test.bs float.wav

BASOP decoder:

ivas-basop/IVAS_dec BINAURAL 48 test.bs float_basop.wav

This raises assert error in frame 1829 with the following stack:

L_shl basop32.c:2590
L_shl basop32.c:2590
L_shr basop32.c:2703
stereo_dft_dec_fx ivas_stereo_dft_dec_fx.c:2250
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
decodeG192 decoder.c:1723
main decoder.c:604