1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

x86: aacencdsp: Fix negating signed values in aac_quantize_bands

Previously, we would do OR with the sign bit, forcing the output
to a negative value, while we want to negate it, by inverting the
sign bit.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö
2025-02-05 22:51:56 +02:00
parent a28dc06869
commit 8b3e0061e1

View File

@@ -96,7 +96,7 @@ cglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q
addps m2, m1 addps m2, m1
minps m2, m3 minps m2, m3
andps m5, m4, [inq+sizeq] andps m5, m4, [inq+sizeq]
orps m2, m5 xorps m2, m5
cvttps2dq m2, m2 cvttps2dq m2, m2
mova [outq+sizeq], m2 mova [outq+sizeq], m2
add sizeq, mmsize add sizeq, mmsize