This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new fa43dc69c4 swscale/utils: compare the cascade image sizes in 64 bits
fa43dc69c4 is described below
commit fa43dc69c472d56626cff278eeb8d7da29844176
Author: Michael Niedermayer <[email protected]>
AuthorDate: Fri Sep 25 02:12:23 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Mon Sep 28 21:02:29 2026 +0000
swscale/utils: compare the cascade image sizes in 64 bits
Fixes: signed integer overflow: 50000 * 50000 cannot be represented in type
'int'
Reachable through API
Found during review with Forgejo Fairy
---
libswscale/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 439236e8ef..d8b29aeaa3 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -938,7 +938,7 @@ int sws_setColorspaceDetails(SwsContext *sws, const int
inv_table[4],
}
}
- if (srcW*srcH > dstW*dstH) {
+ if (srcW*(int64_t)srcH > dstW*(int64_t)dstH) {
tmp_width = dstW;
tmp_height = dstH;
} else {
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]