This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new f71c30ef9e swscale/x86/ops: fix CPU flags checks
f71c30ef9e is described below

commit f71c30ef9eb96b76dcf3e5b03c0d725b33d927c2
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Jun 11 20:15:38 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Jun 13 08:26:19 2026 +0000

    swscale/x86/ops: fix CPU flags checks
    
    This should be using EXTERNAL_*() as the code lives in separately assembled
    files. Also, the FMA4 check should have been FMA3.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/x86/ops.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c
index 1adb73e21c..15512db56d 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -575,11 +575,11 @@ static int compile(SwsContext *ctx, const SwsOpList *ops, 
SwsCompiledOp *out)
 {
     const int cpu_flags = av_get_cpu_flags();
     int ret, mmsize;
-    if (X86_AVX512(cpu_flags))
+    if (EXTERNAL_AVX512(cpu_flags))
         mmsize = 64;
-    else if (X86_AVX2(cpu_flags))
+    else if (EXTERNAL_AVX2(cpu_flags))
         mmsize = 32;
-    else if (X86_SSE4(cpu_flags))
+    else if (EXTERNAL_SSE4(cpu_flags))
         mmsize = 16;
     else
         return AVERROR(ENOTSUP);
@@ -600,7 +600,7 @@ static int compile(SwsContext *ctx, const SwsOpList *ops, 
SwsCompiledOp *out)
     }
 
     SwsUOpFlags flags = SWS_UOP_FLAG_MOVE;
-    if (X86_FMA4(cpu_flags))
+    if (EXTERNAL_FMA3(cpu_flags))
         flags |= SWS_UOP_FLAG_FMA;
 
     ret = ff_sws_ops_translate(ctx, ops, flags, uops);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to