Assert in hq_lr_dec() for 13.2 kbps EVS Stereo DMX
Basic info
- Commit SHA: 4f640fda
- Platform: Linux
Bug description
Decoding the attached bitstream results in an assert in L_shl()
in hq_lr_dec()
Stack trace:
#3 0x00007ffff7cb96e2 in __GI___assert_fail (assertion=0x555555ce1e12 "0", file=0x555555ce1e00 "lib_com/basop32.c", line=2104, function=0x555555ce1e64 <__PRETTY_FUNCTION__.0> "L_shl") at assert.c:103
#4 0x000055555573de2d in L_shl (L_var1=1233424384, var2=1) at lib_com/basop32.c:2104
#5 0x00005555555c163b in hq_lr_dec (st=0x555555dd4470, yout=0x7ffffffeec20, inner_frame=640, num_bits=249, is_transient=0x7ffffffeff50) at lib_dec/hq_lr_dec.c:265
#6 0x00005555555be375 in hq_core_dec (st=0x555555dd4470, synth=0x7fffffff65e0, output_frame=640, hq_core_type=1, core_switching_flag=0, output=0x0) at lib_dec/hq_core_dec.c:245
#7 0x00005555555adab9 in evs_dec (st=0x555555dd4470, mem_hp20_out=0x555555e030d0, output=0x555555e03280, frameMode=FRAMEMODE_NORMAL) at lib_dec/evs_dec.c:270
#8 0x000055555556b13a in evs_dec_main (st_ivas=0x555555dd1300) at lib_dec/lib_dec.c:4212
#9 0x00005555555654cd in IVAS_DEC_GetSamplesDecoder (hIvasDec=0x555555dd12a0, isSplitRend=0, splitRendBits=0x7fffffffe030) at lib_dec/lib_dec.c:1155
#10 0x000055555555fd23 in decodeG192 (arg=..., hBsReader=0x555555dd1810, hHrtfBinary=0x7fffffffd830, headRotReader=0x0, externalOrientationFileReader=0x0, refRotReader=0x0, referenceVectorReader=0x0, objectEditFileReader=0x0,
splitRendBits=0x7fffffffe030, hIvasDec=0x555555dd12a0, pcmBuf=0x555555dd1e60) at apps/decoder.c:2431
#11 0x000055555555bbea in main (argc=5, argv=0x7fffffffe298) at apps/decoder.c:759
This occurs in frame 5714.
The same happens on ivas-float-update, and it was discovered for the +10db Encoder LTV tests for testcase test_param_file.py::test_param_file_tests[ltv_basop_encoder-Stereo downmix to bit-exact EVS at 13200 kbps, 32kHz in, 32kHz out]
Ways to reproduce
IVAS_dec 32 ltv32_STEREO_+10dB_13k2bps_dmx_evs.192 out.wav
Bitstream: ltv32_STEREO_+10dB_13k2bps_dmx_evs.zip