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

Git pushed a commit to branch master
in repository ffmpeg.

commit a71c115b776285c2906393dec3beb2345fe8cf2f
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Feb 24 11:51:18 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Feb 26 10:15:52 2026 +0000

    swscale/x86/ops: allow matching planar rw against 1-element packed fmt
    
    Otherwise, the x86 backend fails to serve e.g. rgb565le.
    
    For -src rgb565le:
     Before: Overall speedup=2.210x faster, min=0.256x max=60.465x
     After:  Overall speedup=4.929x faster, min=0.638x max=181.260x
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/x86/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c
index 251d47e0ac..ba8d987fc2 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -552,7 +552,7 @@ static bool op_is_type_invariant(const SwsOp *op)
     switch (op->op) {
     case SWS_OP_READ:
     case SWS_OP_WRITE:
-        return !op->rw.packed && !op->rw.frac;
+        return !(op->rw.elems > 1 && op->rw.packed) && !op->rw.frac;
     case SWS_OP_SWIZZLE:
     case SWS_OP_CLEAR:
         return true;

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

Reply via email to