From 4d3e96c90c658dbf85ae00ceb8d851689e4b7aca Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 20 Nov 2024 05:17:15 +0100 Subject: [PATCH] lavc/vulkan/common: fix reverse4's incorrect swizzle The function is responsible for converting little to big endian. It had an incorrect swizzle for the last 2 bytes. --- libavcodec/vulkan/common.comp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vulkan/common.comp b/libavcodec/vulkan/common.comp index deca5d63b1..a28701584e 100644 --- a/libavcodec/vulkan/common.comp +++ b/libavcodec/vulkan/common.comp @@ -68,7 +68,7 @@ uint64_t align64(uint64_t src, uint64_t a) } #define reverse4(src) \ - (pack32(unpack8(uint32_t(src)).wzxy)) + (pack32(unpack8(uint32_t(src)).wzyx)) uint64_t reverse8(uint64_t src) {