ports/graphics/ffmpeg/patches/patch-libswscale_ppc_yuv2rgb_altivec_c

15 lines
590 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
error: redeclaration of 'vec_xl' must have the 'overloadable' attribute
Index: libswscale/ppc/yuv2rgb_altivec.c
--- libswscale/ppc/yuv2rgb_altivec.c.orig
+++ libswscale/ppc/yuv2rgb_altivec.c
@@ -284,7 +284,7 @@ static inline void cvtyuvtoRGB(SwsContext *c, vector s
* ------------------------------------------------------------------------------
*/
-#if !HAVE_VSX
+#if !HAVE_VSX && !defined(__clang__)
static inline vector unsigned char vec_xl(signed long long offset, const ubyte *addr)
{
const vector unsigned char *v_addr = (const vector unsigned char *) (addr + offset);