git: 4a33de10dd5b - main - multimedia/mplayer: Fix build with clang 15

From: Thomas Zander <riggs_at_FreeBSD.org>
Date: Fri, 06 Jan 2023 23:17:46 UTC
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