Update to build with newer FFmpeg API.
Index: Makefile =================================================================== RCS file: /home/cvs/ports/x11/freerdp/Makefile,v retrieving revision 1.61 diff -u -p -u -p -r1.61 Makefile --- Makefile 17 Feb 2023 10:05:05 -0000 1.61 +++ Makefile 25 Apr 2023 01:09:16 -0000 @@ -1,5 +1,6 @@ COMMENT = client for Microsoft RDP (remote desktop protocol) DISTNAME = freerdp-2.10.0 +REVISION = 0 DPB_PROPERTIES = parallel CATEGORIES = x11 net Index: patches/patch-libfreerdp_codec_h264_ffmpeg_c =================================================================== RCS file: patches/patch-libfreerdp_codec_h264_ffmpeg_c diff -N patches/patch-libfreerdp_codec_h264_ffmpeg_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-libfreerdp_codec_h264_ffmpeg_c 25 Apr 2023 01:01:40 -0000 @@ -0,0 +1,18 @@ +Fixed #8686: Update h264 to use new FFMPEG API + +Index: libfreerdp/codec/h264_ffmpeg.c +--- libfreerdp/codec/h264_ffmpeg.c.orig ++++ libfreerdp/codec/h264_ffmpeg.c +@@ -529,10 +529,12 @@ static BOOL libavcodec_init(H264_CONTEXT* h264) + goto EXCEPTION; + } + ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 18, 100) + if (sys->codecDecoder->capabilities & AV_CODEC_CAP_TRUNCATED) + { + sys->codecDecoderContext->flags |= AV_CODEC_FLAG_TRUNCATED; + } ++#endif + + #ifdef WITH_VAAPI +