multimedia/mplayer: Fix build with clang 15

PR:		268789
Reported by:	dim
MFH:		2023Q1

(cherry picked from commit 4a33de10dd)
This commit is contained in:
Thomas Zander 2023-01-07 00:15:56 +01:00
parent d80355c48b
commit 40def1889d
No known key found for this signature in database
GPG Key ID: 856D8ED47C7EAFA5

View File

@ -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