Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2023 23:17:46 GMT
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4a33de10dd5b - main - multimedia/mplayer: Fix build with clang 15
Message-ID:  <202301062317.306NHkU7053144@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by riggs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a33de10dd5bf5c8442830e89b9da08b0dff719f

commit 4a33de10dd5bf5c8442830e89b9da08b0dff719f
Author:     Thomas Zander <riggs@FreeBSD.org>
AuthorDate: 2023-01-06 23:15:56 +0000
Commit:     Thomas Zander <riggs@FreeBSD.org>
CommitDate: 2023-01-06 23:15:56 +0000

    multimedia/mplayer: Fix build with clang 15
    
    PR:             268789
    Reported by:    dim
    MFH:            2023Q1
---
 multimedia/mplayer/files/patch-libmpcodecs_vd__ffmpeg.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/multimedia/mplayer/files/patch-libmpcodecs_vd__ffmpeg.c b/multimedia/mplayer/files/patch-libmpcodecs_vd__ffmpeg.c
new file mode 100644
index 000000000000..53df2ba61794
--- /dev/null
+++ b/multimedia/mplayer/files/patch-libmpcodecs_vd__ffmpeg.c
@@ -0,0 +1,11 @@
+--- libmpcodecs/vd_ffmpeg.c.orig	2022-08-07 18:20:47 UTC
++++ libmpcodecs/vd_ffmpeg.c
+@@ -739,7 +739,7 @@ static int get_buffer(AVCodecContext *avctx, AVFrame *
+     if (ctx->use_vdpau) {
+         VdpVideoSurface surface = (VdpVideoSurface)mpi->priv;
+         avctx->draw_horiz_band= NULL;
+-        mpi->planes[3] = surface;
++        mpi->planes[3] = (unsigned char*)surface;
+     }
+ #endif
+ #if CONFIG_XVMC



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301062317.306NHkU7053144>