Assert in OMASA bitrate switching -10 dB LTV input, bw_detect_fx
# Basic info <!--- Add commit SHA used to reproduce--> - BASOP encoder: 7ce3889a426aa54a0d09621ce9f276a440719a67 # Bug description Assert happens in frame 4198 with the inputs described below. The line that triggers the assert is in the bw_detect_fx.c https://forge.3gpp.org/rep/sa4/audio/ivas-basop/-/blob/main/lib_enc/bw_detect_fx.c#L127 ``` L_tmp = L_add_sat( L_tmp, L_shl( L_deposit_l( cldfb_bin_Exp[0] ), 31 - LD_DATA_SCALE ) ); /* Q25 */ ``` where `cld_fb_bin_Exp[0]` is -66 and this gives a left shift of a negative number. Who are the experts on this module? FhG? @fotopoulou, I'm assigning it to you, but feel free to reassign. ![image.png](/uploads/ce3fd071c36f663539bb055f7d3c702c/image.png){width=564 height=344} # Ways to reproduce Inputs available in LTV with -10 dB scaling. <!--Commandline or script--> ```bash cp -v /usr/local/ltv/* scripts/testv python3 tests/scale_pcm.py scripts/testv 0.3162 IVAS_cod -ism_masa 3 1 scripts/testv/ltv48_OMASA_1ISM_1TC_ISM1.csv scripts/testv/ltv48_OMASA_2ISM_1TC_ISM2.csv scripts/testv/ltv48_OMASA_3ISM_1TC_ISM3.csv scripts/testv/ltv48_OMASA_3ISM_1TC.met scripts/switchPaths/sw_13k2_512k_2fr_start_48k_omasatechs_3ism.bin 48 scripts/testv/ltv48_OMASA_3ISM_1TC.wav out.192 ``` <!--- Below are labels that will be added but are not shown in description. This is a template to help fill them. Add further information to the first row and remove and add labels as necessary.-->
issue