basop-2488-negative-pitch-observed-in-certain-cases-for-intfs-32000

  • Related issues: #2488 (closed)
  • Requested reviewers: @multrus , I added you as reviewer given it affects mostly high TCX bitrate, but re-assign as needed

Reason why this change is needed

  • Under certain conditions, specifically when the internal sampling rate is 32 kHz, the computed pitch value may exceed the maximum range supported by the Q6 format. In these rare cases, the pitch must be saturated to avoid wrap‑around, which could otherwise result in negative pitch values.

Description of the change

  • Use saturation

Affected operating points

  • Bitstream compatible, probably not BE for some circumstances

Closes #2488 (closed)

Edited by vaillancour

Merge request reports

Loading