diff --git a/srcpkgs/ffmpeg/patches/2687070d9b092d3a354a6963c65197054ddf7a75.patch b/srcpkgs/ffmpeg/patches/2687070d9b092d3a354a6963c65197054ddf7a75.patch new file mode 100644 index 00000000000..621aba392fb --- /dev/null +++ b/srcpkgs/ffmpeg/patches/2687070d9b092d3a354a6963c65197054ddf7a75.patch @@ -0,0 +1,41 @@ +From 2687070d9b092d3a354a6963c65197054ddf7a75 Mon Sep 17 00:00:00 2001 +From: Carl Eugen Hoyos +Date: Sat, 23 Jan 2021 19:33:13 +0100 +Subject: [PATCH] lsws/ppc/yuv2rgb: Fix transparency converting from + yuv->rgb32. +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + +Based on 68363b69 by Reimar Döffinger. + +Fixes ticket #9077. +--- + libswscale/ppc/yuv2rgb_altivec.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c +index 58e480dd2c..4f5382e4c1 100644 +--- libswscale/ppc/yuv2rgb_altivec.c ++++ libswscale/ppc/yuv2rgb_altivec.c +@@ -425,13 +425,13 @@ static int altivec_ ## name(SwsContext *c, const unsigned char **in, \ + } + + #define out_abgr(a, b, c, ptr) \ +- vec_mstrgb32(__typeof__(a), ((__typeof__(a)) { 255 }), c, b, a, ptr) ++ vec_mstrgb32(__typeof__(a), ((__typeof__(a)) vec_splat((__typeof__(a)){ 255 }, 0)), c, b, a, ptr) + #define out_bgra(a, b, c, ptr) \ +- vec_mstrgb32(__typeof__(a), c, b, a, ((__typeof__(a)) { 255 }), ptr) ++ vec_mstrgb32(__typeof__(a), c, b, a, ((__typeof__(a)) vec_splat((__typeof__(a)){ 255 }, 0)), ptr) + #define out_rgba(a, b, c, ptr) \ +- vec_mstrgb32(__typeof__(a), a, b, c, ((__typeof__(a)) { 255 }), ptr) ++ vec_mstrgb32(__typeof__(a), a, b, c, ((__typeof__(a)) vec_splat((__typeof__(a)){ 255 }, 0)), ptr) + #define out_argb(a, b, c, ptr) \ +- vec_mstrgb32(__typeof__(a), ((__typeof__(a)) { 255 }), a, b, c, ptr) ++ vec_mstrgb32(__typeof__(a), ((__typeof__(a)) vec_splat((__typeof__(a)){ 255 }, 0)), a, b, c, ptr) + #define out_rgb24(a, b, c, ptr) vec_mstrgb24(a, b, c, ptr) + #define out_bgr24(a, b, c, ptr) vec_mstbgr24(a, b, c, ptr) + +-- +2.20.1 + diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template index 4a154e5d476..9879cb0e3aa 100644 --- a/srcpkgs/ffmpeg/template +++ b/srcpkgs/ffmpeg/template @@ -2,7 +2,7 @@ # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname! pkgname=ffmpeg version=4.3.1 -revision=4 +revision=5 short_desc="Decoding, encoding and streaming software" maintainer="Johannes " license="GPL-3.0-or-later"