public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gpac/, media-video/gpac/files/
Date: Sun, 10 Nov 2024 10:08:00 +0000 (UTC)	[thread overview]
Message-ID: <1731233265.303de897b453ac71ab0c990a9aef7bd86f543948.asturm@gentoo> (raw)

commit:     303de897b453ac71ab0c990a9aef7bd86f543948
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 10:06:42 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 10:07:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=303de897

media-video/gpac: Fix build w/ big endian

Thanks-to: ernsteiswuerfel <erhard_f <AT> mailbox.org>
Closes: https://bugs.gentoo.org/911634
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../gpac/files/gpac-2.2.1-fix-bigendian.patch      | 22 ++++++++++++++++++++++
 media-video/gpac/gpac-2.2.1-r1.ebuild              |  1 +
 2 files changed, 23 insertions(+)

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=(


             reply	other threads:[~2024-11-10 10:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-10 10:08 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-09 21:56 [gentoo-commits] repo/gentoo:master commit in: media-video/gpac/, media-video/gpac/files/ Ionen Wolkens
2025-03-13  4:24 Ionen Wolkens
2023-04-10  9:25 Sam James
2023-03-29 16:16 Alexis Ballier
2020-09-12 21:42 Sam James
2020-09-08 22:42 Sam James
2018-05-08 18:33 Lars Wendler
2017-07-25 16:50 Steve Dibb
2017-02-24  9:00 Alexis Ballier
2015-09-16 11:47 Alexis Ballier
2015-08-22  9:20 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1731233265.303de897b453ac71ab0c990a9aef7bd86f543948.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox