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

Git pushed a commit to branch master
in repository ffmpeg.

commit 03967fcff41f3973b533e606522c44a456330b36
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Thu Apr 16 20:10:02 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Thu Apr 16 18:56:22 2026 +0000

    tests/checkasm/sw_ops: fix too large shift for int
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 tests/checkasm/sw_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/sw_ops.c b/tests/checkasm/sw_ops.c
index 70859160f0..dd993ffcfc 100644
--- a/tests/checkasm/sw_ops.c
+++ b/tests/checkasm/sw_ops.c
@@ -798,7 +798,7 @@ static void check_scale(void)
         const char *type = ff_sws_pixel_type_name(t);
         const int bits = ff_sws_pixel_type_size(t) * 8;
         if (ff_sws_pixel_type_is_int(t)) {
-            const unsigned max = (1 << bits) - 1;
+            const unsigned max = UINT32_MAX >> (32 - bits);
 
             /* Test fixed fast path for expansion from bits to full range */
             CHECK_COMMON_RANGE(FMT("scale_full_%s", type), 1, t, t, {

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

Reply via email to