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

Git pushed a commit to branch master
in repository ffmpeg.

commit ed12cf75154f9eaee306133a393b0ad7d049a3ef
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Jun 20 16:25:55 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Jun 23 11:48:13 2026 +0000

    swscale/uops: simplify uop mask printing slightly
    
    We can re-use the helper we just added.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/uops.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/libswscale/uops.c b/libswscale/uops.c
index 6873c2f2aa..17796d0869 100644
--- a/libswscale/uops.c
+++ b/libswscale/uops.c
@@ -136,13 +136,8 @@ void ff_sws_uop_name(const SwsUOp *op, char 
buf[SWS_UOP_NAME_MAX])
         av_bprintf(&bp, "%s_", ff_sws_pixel_type_name(op->type));
     av_bprintf(&bp, "%s", uop_names[op->uop].abbr);
 
-    if (op->mask) {
-        av_bprint_chars(&bp, '_', 1);
-        for (int i = 0; i < 4; i++) {
-            if (SWS_COMP_TEST(op->mask, i))
-                av_bprint_chars(&bp, "xyzw"[i], 1);
-        }
-    }
+    if (op->mask)
+        av_bprintf(&bp, "_%s", ff_sws_comp_mask_str(op->mask));
 
     const SwsUOpParams *par = &op->par;
     switch (op->uop) {

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

Reply via email to