BASOP-Assert in hq_lr_enc()
(Generic issue template) The following commandline triggers a BASOP-assert (overflow) in hq_lr_enc():
IVAS_cod -stereo_dmx_evs 13200 32 ltv_+10dB/ltv32_STEREO.wav out.192
Stack trace:
#3 0x00007ffff7cb96e2 in __GI___assert_fail (assertion=0x5555557bfcc2 "0", file=0x5555557bfcb0 "lib_com/basop32.c", line=2104, function=0x5555557bfd14 <__PRETTY_FUNCTION__.0> "L_shl") at assert.c:103
#4 0x00005555556cb8f1 in L_shl (L_var1=1233424384, var2=1) at lib_com/basop32.c:2104
#5 0x00005555555752b1 in hq_lr_enc (st=0x55555587f160, t_audio=0x7ffffffef730, inner_frame=640, num_bits=0x7fffffff27fe, is_transient=0) at lib_enc/hq_lr_enc.c:339
#6 0x00005555555734fb in hq_core_enc (st=0x55555587f160, audio=0x555555880e90, input_frame_orig=640, hq_core_type=1, Voicing_flag=0, vad_hover_flag=0) at lib_enc/hq_core_enc.c:227
#7 0x000055555556e3e3 in evs_enc (st=0x55555587f160, data=0x5555558a7a70, mem_hp20_in=0x5555558a5810, n_samples=640) at lib_enc/evs_enc.c:257
#8 0x000055555555e929 in IVAS_ENC_EncodeFrameToSerial (hIvasEnc=0x55555587e2a0, inputBuffer=0x5555558a7a70, inputBufferSize=640, outputBitStream=0x7fffffff9000, numOutBits=0x7fffffff8ffe) at lib_enc/lib_enc.c:1334
#9 0x0000555555559eb4 in main (argc=6, argv=0x7fffffffe268) at apps/encoder.c:760
This was actually observed on ivas-basop/ivas-float-update. The patch needs to be ported back.