Skip to content

Decoder crash in ISM bitrate switching with DTX and binaural output

When running the following 4 ISM DTX bitrate switching condition from the selftest

// 4 ISm with and without metadata bitrate switching from 24.4 kbps to 256 kbps, 48 kHz in, 48 kHz out, DTX on, HOA3 out
../IVAS_cod -dtx -ism 4 testv/stvISM1.csv NULL NULL testv/stvISM4.csv ../scripts/switchPaths/sw_24k4_256k.bin 48 testv/stv4ISM48n.wav bit
../IVAS_dec HOA3 48 bit testv/stv4ISM48n.wav_brate_sw_48-48_DTX_hoa3.tst

with BINAURAL output instead of HOA3 the decoder runs into a segfault in frame 946.

The segfault occurs in the function ivas_jbm_dec_flush_renderer() in ivas_jbm_dec.c on the line

*nSamplesRendered = 0;

Apparently, nSamplesRendered is not set here and remains a NULL pointer.

The segfault doesn't occur when DTX is turned off.

Edited by reutelhuber