Commit fa43dc69c4 for ffmpeg

commit fa43dc69c472d56626cff278eeb8d7da29844176
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Fri Sep 25 02:12:23 2026 +0200

    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

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 {