Assert in calc_low_shelf_first_order_filter_fx()
Basic info
- Float reference:
- Encoder (float): 4b5bebea
- Decoder (float): n/a
- Fixed point:
- Encoder (fixed): n/a
- Decoder (fixed): aae041ea
Bug description
The BASOP decoder runs into an assert during initialization of the reverb module:
#3 0x00007ffff7cb96e2 in __GI___assert_fail (assertion=0x555555ee422c "y != (Word16) 0", file=0x555555ee4120 "lib_com/basop_util.c", line=1523, function=0x555555ee44b0 <__PRETTY_FUNCTION__.6> "BASOP_Util_Divide1616_Scale") at assert.c:103
#4 0x0000555555865492 in BASOP_Util_Divide1616_Scale (x=0, y=0, s=0x7ffffffde6d2) at lib_com/basop_util.c:1523
#5 0x000055555557b872 in calc_low_shelf_first_order_filter_fx (pNum=0x7ffffffe0e20, pDen=0x7ffffffe0e24, f0=64, lin_gain_lf=0, lin_gain_hf=0) at lib_rend/ivas_reverb_fx.c:744
#6 0x000055555557c68b in calc_jot_t60_coeffs_fx (pH_dB_fx=0x7ffffffde9f0, pH_dB_exp=7, nrFrequencies=257, pFrequencies_fx=0x7ffffffde7e0, pCoeffA_fx=0x7ffffffe0e24, pCoeffB_fx=0x7ffffffe0e20, fNyquist_fx=24000) at lib_rend/ivas_reverb_fx.c:975
#7 0x000055555557b6c3 in compute_t60_coeffs_fx (pParams=0x7ffffffe0cb0, nr_fc_fft_filter=257, output_Fs=48000) at lib_rend/ivas_reverb_fx.c:700
#8 0x000055555557d66c in ivas_reverb_open_fx (hReverb=0x555555fe26d8, hHrtfStatistics=0x555555fe56f0, hRenderConfig=0x555555fe3920, output_Fs=48000) at lib_rend/ivas_reverb_fx.c:1556
#9 0x000055555560a1ff in ivas_init_decoder_fx (st_ivas=0x555555fe2300) at lib_dec/ivas_init_dec_fx.c:2730
#10 0x0000555555605ca2 in ivas_dec_setup (st_ivas=0x555555fe2300, nSamplesRendered=0x7fffffff7aea, data=0x555555fe4590) at lib_dec/ivas_init_dec_fx.c:1088
#11 0x000055555556754b in IVAS_DEC_Setup (hIvasDec=0x555555fe22a0, nTcBufferGranularity=0x7fffffff7ae8, nTransportChannels=0x7fffffff7ae5 "", nOutChannels=0x7fffffff7ae4 "", nSamplesRendered=0x7fffffff7aea, data=0x555555fe4590)
at lib_dec/lib_dec_fx.c:1654
#12 0x0000555555565dc3 in IVAS_DEC_GetSamples (hIvasDec=0x555555fe22a0, nSamplesAsked=960, pcmBuf=0x555555fe4590, nOutSamples=0x7fffffff8158, needNewFrame=0x7fffffff815b) at lib_dec/lib_dec_fx.c:1171
#13 0x000055555556109a in decodeG192 (arg=..., hBsReader=0x555555fe2800, headRotReader=0x555555fe3030, externalOrientationFileReader=0x0, refRotReader=0x0, referenceVectorReader=0x0, splitRendBits=0x7fffffffdf00, hIvasDec=0x555555fe22a0,
pcmBuf=0x555555fe4590) at apps/decoder.c:2228
#14 0x000055555555ccdb in main (argc=9, argv=0x7fffffffe168) at apps/decoder.c:756
Ways to reproduce
IVAS_dec -render_config ivas-codec/scripts/testv/rend_config_recreation.cfg -t ivas-codec//scripts/trajectories/full-circle-with-up-and-down-4s.csv BINAURAL_ROOM_REVERB 48 ltv48_MC51.wav_Multi_channel_7_1_4_at_160_kbps_48kHz_in_48kHz_out_BINAURAL_ROOM_REVERB_out_Config_recreation_HR.192 out.wav