git: 40def1889dd6 - 2023Q1 - multimedia/mplayer: Fix build with clang 15

From: Thomas Zander <riggs_at_FreeBSD.org>
Date: Fri, 06 Jan 2023 23:18:26 UTC
The branch 2023Q1 has been updated by riggs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=40def1889dd6dbe2e46a214b8e4265c88860bafa

commit 40def1889dd6dbe2e46a214b8e4265c88860bafa
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:18:11 +0000

    multimedia/mplayer: Fix build with clang 15
    
    PR:             268789
    Reported by:    dim
    MFH:            2023Q1
    
    (cherry picked from commit 4a33de10dd5bf5c8442830e89b9da08b0dff719f)
---
 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