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 3c03048837 swscale/x86/ops: fix MSVC compiler error
3c03048837 is described below

commit 3c03048837dd72df38dabecc4c23258d67612548
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Feb 27 08:59:25 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Fri Feb 27 09:00:04 2026 +0100

    swscale/x86/ops: fix MSVC compiler error
    
    src/libswscale/x86/ops.c(534): error C2099: initializer is not a constant
    src/libswscale/x86/ops.c(535): error C2099: initializer is not a constant
    src/libswscale/x86/ops.c(536): error C2099: initializer is not a constant
    src/libswscale/x86/ops.c(537): error C2099: initializer is not a constant
    src/libswscale/x86/ops.c(539): error C2099: initializer is not a constant
    src/libswscale/x86/ops.c(540): error C2099: initializer is not a constant
    
    Fixes: ec959e20c5852e288f3d7bbecb8b09303a53c61b
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/x86/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c
index 3978f8291c..b44f880b4e 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -188,7 +188,7 @@ static int setup_shift(const SwsOp *op, SwsOpPriv *out)
 #define DECL_EXPAND_BITS(EXT, BITS)                                            
 \
     DECL_ASM(U##BITS, expand_bits##BITS##EXT,                                  
 \
         .op = SWS_OP_SCALE,                                                    
 \
-        .scale = Q((1 << (BITS)) - 1),                                         
 \
+        .scale = { .num = ((1 << (BITS)) - 1), .den = 1 },                     
 \
     );
 
 static int setup_dither(const SwsOp *op, SwsOpPriv *out)

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

Reply via email to