summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-11-10 11:06:42 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-11-10 11:07:45 +0100
commit303de897b453ac71ab0c990a9aef7bd86f543948 (patch)
tree249191ee8125c7b3caa2828a76a94a966b4ec24e /media-video
parentmedia-libs/libsidplayfp: dropped obsolete 2.9.0 (diff)
downloadgentoo-303de897b453ac71ab0c990a9aef7bd86f543948.tar.gz
gentoo-303de897b453ac71ab0c990a9aef7bd86f543948.tar.bz2
gentoo-303de897b453ac71ab0c990a9aef7bd86f543948.zip
media-video/gpac: Fix build w/ big endian
Thanks-to: ernsteiswuerfel <erhard_f@mailbox.org> Closes: https://bugs.gentoo.org/911634 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/gpac/files/gpac-2.2.1-fix-bigendian.patch22
-rw-r--r--media-video/gpac/gpac-2.2.1-r1.ebuild1
2 files changed, 23 insertions, 0 deletions
diff --git a/media-video/gpac/files/gpac-2.2.1-fix-bigendian.patch b/media-video/gpac/files/gpac-2.2.1-fix-bigendian.patch
new file mode 100644
index 000000000000..cf822967f2d3
--- /dev/null
+++ b/media-video/gpac/files/gpac-2.2.1-fix-bigendian.patch
@@ -0,0 +1,22 @@
+From b0ad643014e567f47d1231771b473d25986c512e Mon Sep 17 00:00:00 2001
+From: Aurelien David <aurelien.david@telecom-paristech.fr>
+Date: Tue, 20 Dec 2022 15:48:42 +0100
+Subject: [PATCH] fix bigendian build (#2363)
+
+---
+ src/evg/stencil.c | 8 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/evg/stencil.c b/src/evg/stencil.c
+index 6528722c69..95e6ea7d9e 100644
+--- a/src/evg/stencil.c
++++ b/src/evg/stencil.c
+@@ -1860,7 +1860,7 @@ u32 get_pix_yuv420p(EVG_Texture *_this, u32 x, u32 y, EVGRasterCtx *ctx)
+ #define GET_LE_10BIT_AS_16(_ptr) ( (((u16)(_ptr)[1])<<8 | (u16)(_ptr)[0] ) << 6 )
+
+ //#define GET_LE_10BIT_LEFT_AS_8(_ptr) ( (((u16)(_ptr)[1])<<8 | (u16)(_ptr)[0] ) >> 8 )
+-#define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
++#define GET_LE_10BIT_LEFT_AS_8(_ptr) ((_ptr)[1] )
+ #define GET_LE_10BIT_LEFT_AS_16(_ptr) ( (((u16)(_ptr)[1])<<8 | (u16)(_ptr)[0] ) & 0xFFC0 )
+
+ #define GET_BE_10BIT_AS_8(_ptr) ( (*(u16 *)(_ptr)) >> 2 )
diff --git a/media-video/gpac/gpac-2.2.1-r1.ebuild b/media-video/gpac/gpac-2.2.1-r1.ebuild
index 25ae4bc6b298..46267cba559a 100644
--- a/media-video/gpac/gpac-2.2.1-r1.ebuild
+++ b/media-video/gpac/gpac-2.2.1-r1.ebuild
@@ -66,6 +66,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.2.0-configure.patch"
"${FILESDIR}/${PN}-2.2.0-ffmpeg6.patch"
"${FILESDIR}/${PN}-2.2.0-ffmpeg6-deux.patch"
+ "${FILESDIR}/${P}-fix-bigendian.patch" # bug 911634
)
DOCS=(