summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-02-05 19:48:26 +0100
committerAnton Khirnov <anton@khirnov.net>2024-02-09 16:24:50 +0100
commit7c873fb2985f94da61eb7b41c90176fa471e6163 (patch)
tree15c41f6a8277e041c7fac9e5582015f5621ea823
parent1cc24d749569a42510399a29b034f7a77bdec34e (diff)
lavc/refstruct: do not use max_align_t on MSVC
It is not available there, even when C11/17 is requested. Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/refstruct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/refstruct.c b/libavcodec/refstruct.c
index 7597f6d0ee..81e8c9795c 100644
--- a/libavcodec/refstruct.c
+++ b/libavcodec/refstruct.c
@@ -45,7 +45,7 @@
#define REFSTRUCT_COOKIE AV_NE((uint64_t)MKBETAG('R', 'e', 'f', 'S') << 32 | MKBETAG('t', 'r', 'u', 'c'), \
MKTAG('R', 'e', 'f', 'S') | (uint64_t)MKTAG('t', 'r', 'u', 'c') << 32)
-#if __STDC_VERSION__ >= 201112L
+#if __STDC_VERSION__ >= 201112L && !defined(_MSC_VER)
#define REFCOUNT_OFFSET FFALIGN(sizeof(RefCount), FFMAX3(STRIDE_ALIGN, 16, _Alignof(max_align_t)))
#else
#define REFCOUNT_OFFSET FFALIGN(sizeof(RefCount), FFMAX(STRIDE_ALIGN, 16))