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

Git pushed a commit to branch master
in repository ffmpeg.

commit d0cb74881cf10d7ab437074a175c6bcbf4ffde5f
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Feb 19 14:36:29 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Feb 19 19:44:46 2026 +0000

    swscale/ops: fix PRINTQ snprintf buffer size
    
    There is no reason to subtract 1 here; snprintf guarantees zero-termination.
---
 libswscale/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index eb3c463239..808160ebd9 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -669,7 +669,7 @@ static const char *print_q(const AVRational q, char buf[], 
int buf_len)
     }
 }
 
-#define PRINTQ(q) print_q(q, (char[32]){0}, sizeof(char[32]) - 1)
+#define PRINTQ(q) print_q(q, (char[32]){0}, sizeof(char[32]))
 
 void ff_sws_op_list_print(void *log, int lev, const SwsOpList *ops)
 {

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

Reply via email to