mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
The channel count passed as a 32-bit register (w3) is later used as a 64-bit register (x3) for pointer offsets without proper sign extension, resulting in misbehavior. This commit adds an explicit sxtw instruction to ensure the channel count is properly sign-extended. Additionally, standardizes the use of the 32-bit w2 and w12 registers in the core length logic across functions to prevent sign extension issues with lengths without relying on explicit 64-bit casting, matching expected input bounds tracking. Signed-off-by: Hao Chen <haochenc@google.com>