1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-06-14 08:44:40 +02:00

avcodec/x86/vorbisdsp: change cmpleps to cmpltps in inverse coupling

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 9288681068)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Hassan Hany
2026-02-05 23:14:16 +02:00
committed by Michael Niedermayer
parent 06f7ab2c0a
commit f10d87bf82
+2 -2
View 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