Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] swscale/ops: fix build with msvc (PR #20395)
@ 2025-09-02  4:28 Zhao Zhili via ffmpeg-devel
  0 siblings, 0 replies; only message in thread
From: Zhao Zhili via ffmpeg-devel @ 2025-09-02  4:28 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Zhao Zhili

PR #20395 opened by Zhao Zhili (quink)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20395
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20395.patch

x86/ops.c(500): error C2099: initializer is not a constant


>From e68a2b5c263f8105fd48e54c6a9e4b0d18c3c81b Mon Sep 17 00:00:00 2001
From: Zhao Zhili <zhilizhao@tencent.com>
Date: Tue, 2 Sep 2025 12:07:32 +0800
Subject: [PATCH] swscale/ops: fix build with msvc

x86/ops.c(500): error C2099: initializer is not a constant
---
 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 836c5f0d13..9ee6efe119 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -130,7 +130,7 @@ static int setup_clear(const SwsOp *op, SwsOpPriv *out)
 #define DECL_SWIZZLE(EXT, X, Y, Z, W)                                           \
     DECL_ASM(U8, swizzle_##X##Y##Z##W##EXT,                                     \
         .op = SWS_OP_SWIZZLE,                                                   \
-        .swizzle = SWS_SWIZZLE( X, Y, Z, W ),                                   \
+        .swizzle = { .in = {X, Y, Z, W} },                                      \
     );
 
 #define DECL_CONVERT(EXT, FROM, TO)                                             \
-- 
2.49.1

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-02  4:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-02  4:28 [FFmpeg-devel] [PATCH] swscale/ops: fix build with msvc (PR #20395) Zhao Zhili via ffmpeg-devel

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git