Negative pitch observed in certain cases for intFS==32000

Basic info

  • Float reference:
    • Encoder (float):
    • Decoder (float):
  • Fixed point:
    • Encoder (fixed): a6b0e09b
    • Decoder (fixed):

Bug description

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.

The first occurrence where this is observed with the following test case is at frame 137

Ways to reproduce

Box folder: ...\Box_EXTERNAL_IVAS_BASOP_VERIFICATION\issues\issue-xxxx

IVAS_cod -sba 1  512000 32 ltv32_FOA.wav bit
Assignee Loading
Time tracking Loading