Skip to content

[non-BE] Add fix FIX_569_TD_FILTER_LENGTH to truncate the filters if a model file...

norvell requested to merge 569-flexible-td-renderer-filter-memory-allocation into main

Add fix FIX_569_TD_FILTER_LENGTH to truncate the filters if a model file produces filters longer than SFX_SPAT_BIN_MAX_FILTER_LENGTH

Related to #569 (closed)

If an HRTF model file with SFX_SPAT_BIN_MAX_FILTER_LENGTH is input into the codec, the codec crashes. This solves the crash by truncating the filters in this case. It can be verified by changing SFX_SPAT_BIN_MAX_FILTER_LENGTH from 256 to something shorter than 128 (the length in the default model) and running one of the self_test cases which loads a model file:

// 1 ISM with metadata at 80 kbps, 48 kHz in, 16 kHz out, BINAURAL out (Model from file), head rotation, random FEC at 5%
../IVAS_cod -ism 1 testv/stvISM1.csv 80000 48 testv/stv1ISM48s.wav bit
../IVAS_dec -fec 5 -t testv/headrot_case00_3000_q.csv -hrtf ../scripts/binauralRenderer_interface/binaural_renderers_hrtf_data/ivas_binaural_16kHz.bin BINAURAL 16 bit out.wav

Merge request reports

Loading