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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5649ac2b4dbeeb6bb7c91069da8e426b28fb8830
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Feb 24 12:58:30 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Feb 26 10:15:52 2026 +0000

    swscale/ops: avoid UB in handle_tail()
    
    Stupid NULL + 0 rule.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 2889e95d12..5f60c6f08e 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -1054,9 +1054,9 @@ handle_tail(const SwsOpPass *p, SwsOpExec *exec,
         }
 
         for (int i = 0; i < 4; i++) {
-            if (!copy_in)
+            if (!copy_in && exec->in[i])
                 exec->in[i] += in.linesize[i];
-            if (!copy_out)
+            if (!copy_out && exec->out[i])
                 exec->out[i] += out.linesize[i];
         }
     }

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

Reply via email to