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

Git pushed a commit to branch master
in repository ffmpeg.

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

    swscale/ops: fix noop check ignoring read/write filters
    
    Fixes a few cases where we previously didn't actually scale:
    
     gbrpf32le 16x16 -> gbrpf32le 16x32:
    -  (no-op)
    +  [f32 ...X] SWS_OP_READ         : 3 elem(s) planar >> 0 + 2 tap bilinear 
filter (V)
    +    min: {nan nan nan _}, max: {nan nan nan _}
    +  [f32 XXXX] SWS_OP_WRITE        : 3 elem(s) planar >> 0
    +    ('X' unused, 'z' byteswapped, '=' copied, '$' const, '+' integer, '0' 
zero)
    + translated micro-ops:
    +    f32_read_planar_fv_xyz_f32
    +    u32_write_planar_xyz
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c            | 3 ++-
 tests/ref/fate/sws-ops-list | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 28739276f1..0f52f7a77c 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -752,7 +752,8 @@ bool ff_sws_op_list_is_noop(const SwsOpList *ops)
         read->type != write->type ||
         read->rw.mode != write->rw.mode ||
         read->rw.elems != write->rw.elems ||
-        read->rw.frac != write->rw.frac)
+        read->rw.frac != write->rw.frac ||
+        read->rw.filter.op || write->rw.filter.op)
         return false;
 
     /**
diff --git a/tests/ref/fate/sws-ops-list b/tests/ref/fate/sws-ops-list
index d62bc51dbe..89fd98ade9 100644
--- a/tests/ref/fate/sws-ops-list
+++ b/tests/ref/fate/sws-ops-list
@@ -1 +1 @@
-e9435c106ceeb7a19638e982380f3660
+6e80d07a48c056bfbef85a25e4679693

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

Reply via email to