avcodec/x86/vorbisdsp: change cmpleps to cmpltps in inverse coupling
authorHassan Hany <hassanhanyrashad@gmail.com>
Thu, 5 Feb 2026 21:14:16 +0000 (23:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 Jun 2026 02:59:03 +0000 (04:59 +0200)
Changed the comparison from cmpleps to strictly less than
(cmpltps) to strictly follow the Vorbis spec

Fixes https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21501

(cherry picked from commit 92886810682b1d417e14ba3af92d2674cf4fc774)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/x86/vorbisdsp.asm

index 9afe2eb3529990983d071a2d0d8b736616463772..815a1b2114740287932524dab1f359a4f4d942ec 100644 (file)
@@ -41,8 +41,8 @@ align 16
     mova                     m1, [angq+block_sizeq]
     xorps                    m2, m2
     xorps                    m3, m3
-    cmpleps                  m2, m0     ; m <= 0.0
-    cmpleps                  m3, m1     ; a <= 0.0
+    cmpltps                  m2, m0     ; m < 0.0
+    cmpltps                  m3, m1     ; a < 0.0
     andps                    m2, m5     ; keep only the sign bit
     xorps                    m1, m2
     mova                     m4, m3