Skip to content

Decoder crash in MASA DTX bitrateswitch

Basic info

Bug description

A MASA LTV item with rateswitch and DTX crashes in decoder in frame 2660 with the error:

Error: could not feed frame to decoder: Internal fatal error

In decoder.c line 2504, in the call to IVAS_DEC_FeedFrame_Serial() the parameter num_bits = 1131. This is passed to read_indices() where it results to total_bitrate = 56550, which is an invalid valued and causes raising IVAS_ERR_INTERNAL_FATAL.

Ways to reproduce

Encode the LTV item ltv48_MASA1TC using the attached rateswitch sequence

./IVAS_cod -q -masa 1 ivas-pc-testfiles/ltv48_MASA1TC.met -max_band fb -dtx brsw.bin 48 ivas-pc-testfiles/ltv48_MASA1TC.wav bit.bs

Decode to any output mode:

./IVAS_dec BINAURAL 48 bit.bs out.wav