[FFmpeg-cvslog] x86: aacencdsp: Fix negating signed values in aac_quantize_bands
Martin Storsjö
git at videolan.org
Mon Feb 10 14:09:40 EET 2025
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Feb 5 22:51:56 2025 +0200| [8b3e0061e10bf6d4224813774c537866c6b23b12] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b3e0061e10bf6d4224813774c537866c6b23b12
---
libavcodec/x86/aacencdsp.asm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/x86/aacencdsp.asm b/libavcodec/x86/aacencdsp.asm
index 86eaebcbe5..8e435b7d2a 100644
--- a/libavcodec/x86/aacencdsp.asm
+++ b/libavcodec/x86/aacencdsp.asm
@@ -96,7 +96,7 @@ cglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q
addps m2, m1
minps m2, m3
andps m5, m4, [inq+sizeq]
- orps m2, m5
+ xorps m2, m5
cvttps2dq m2, m2
mova [outq+sizeq], m2
add sizeq, mmsize
More information about the ffmpeg-cvslog
mailing list