Date: Thu, 8 Dec 2022 21:13:11 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 7e7399cc86dd - main - multimedia/gpac-libgpac: fix build on big-endian Message-ID: <202212082113.2B8LDBAV000431@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=7e7399cc86dd957e73e5cd778ea625bc2d4a6e8e commit 7e7399cc86dd957e73e5cd778ea625bc2d4a6e8e Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-12-08 21:12:52 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-12-08 21:12:52 +0000 multimedia/gpac-libgpac: fix build on big-endian evg/raster_yuv.c:1329:2: error: use of undeclared identifier 'ptr' get_u16_le(dstc, dst); ^ evg/raster_yuv.c:1294:55: note: expanded from macro 'get_u16_le' --- multimedia/gpac-libgpac/files/patch-src_evg_raster__yuv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/multimedia/gpac-libgpac/files/patch-src_evg_raster__yuv.c b/multimedia/gpac-libgpac/files/patch-src_evg_raster__yuv.c new file mode 100644 index 000000000000..1df26219359e --- /dev/null +++ b/multimedia/gpac-libgpac/files/patch-src_evg_raster__yuv.c @@ -0,0 +1,11 @@ +--- src/evg/raster_yuv.c.orig 2022-12-08 16:12:27 UTC ++++ src/evg/raster_yuv.c +@@ -1291,7 +1291,7 @@ GF_Err evg_surface_clear_yuyv(GF_EVGSurface *_surf, GF + #define set_u16_le(_ptr, val) { ((u8 *)_ptr)[0] = (val>>8)&0xFF; ((u8 *)_ptr)[1] = (val&0xFF); } + #define set_u16_be(_ptr, val) { *(u16 *) _ptr = (u16) val; } + +-#define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; } ++#define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) _ptr+1)<< 8) | *(u8 *) _ptr; } + #define get_u16_be(val, _ptr) { val = *(u16 *) (_ptr); } + + #else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212082113.2B8LDBAV000431>