Skip to content

Resolve "USAN: division by zero in ivas_stereo_dft_enc_itd.c for OMASA encoding"

Reason why this change is needed

Fix division by zero reported by USAN.

Description of the change

The angle_rot feature, employed by the UNCLR and XTALK classifiers, calculates the difference between the energies of the left and right channels of the stereo input signal. This difference is then utilized in the denominator of the angle_rot feature. The fix ensures that the denominator remains outside the <-1.0, 1.0> interval.

Affected operating points

The fix might impact certain rare scenarios involving transitions between TD and DFT stereo modes, affecting all operational points that involve the stereo/CPE core coder. However, the impact on subjective quality is expected to be negligible due to the limited impact of the angle_rot feature on the classifiers.

Merge request reports

Loading