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

Git pushed a commit to branch master
in repository ffmpeg.

commit cd1126a3cda6ddd20534fd74edcbd434f0ebd768
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Apr 7 16:31:43 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Apr 7 15:10:04 2026 +0000

    swscale/ops: add assertion that comps_src is sane
    
    This assertion guards against bugs like that fixed in the previous
    commit.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 0d792a86ec..c993e9eb58 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -338,6 +338,7 @@ void ff_sws_op_list_update_comps(SwsOpList *ops)
              * other components are explicitly stripped */
             for (int i = 0; i < op->rw.elems; i++) {
                 const int idx = op->rw.packed ? i : ops->plane_src[i];
+                av_assert0(!(ops->comps_src.flags[idx] & SWS_COMP_GARBAGE));
                 op->comps.flags[i] = ops->comps_src.flags[idx];
                 op->comps.min[i]   = ops->comps_src.min[idx];
                 op->comps.max[i]   = ops->comps_src.max[idx];

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

Reply via email to