diff options
author | Martin Storsjö <martin@martin.st> | 2018-01-16 15:40:24 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-01-16 22:52:11 +0200 |
commit | 85e10c0a9321bfe0d2afe0f3983ab6a8df6e3fba (patch) | |
tree | 9657db03d2ae2fa22b91a128689333af54d517ac /libavutil/intreadwrite.h | |
parent | cbe28bc069dde1d53d937ee10700bb123279c7c8 (diff) | |
download | ffmpeg-85e10c0a9321bfe0d2afe0f3983ab6a8df6e3fba.tar.gz |
intreadwrite: Use __unaligned in MSVC for ARM64 as well
This attribute is supported for this architecture in MSVC as well
(but produces errors if used for 32 bit x86).
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/intreadwrite.h')
-rw-r--r-- | libavutil/intreadwrite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/intreadwrite.h b/libavutil/intreadwrite.h index 84685f02eb..94abb6cd11 100644 --- a/libavutil/intreadwrite.h +++ b/libavutil/intreadwrite.h @@ -192,7 +192,7 @@ union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias; # define AV_RN(s, p) (((const union unaligned_##s *) (p))->l) # define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v)) -#elif defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_X64)) && AV_HAVE_FAST_UNALIGNED +#elif defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_X64) || defined(_M_ARM64)) && AV_HAVE_FAST_UNALIGNED # define AV_RN(s, p) (*((const __unaligned uint##s##_t*)(p))) # define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v)) |