commit: e728765e887d429fd0aa86f62e22c7259211325e Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Wed Jul 2 21:03:45 2025 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Wed Jul 2 21:06:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e728765e
net-misc/sunshine: Borrow ffmpeg patch to fix build against svt-av1-3 Closes: https://bugs.gentoo.org/958994 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> net-misc/sunshine/files/ffmpeg-7.1.1-svt-av1-3.patch | 13 +++++++++++++ net-misc/sunshine/sunshine-2025.628.4510.ebuild | 1 + 2 files changed, 14 insertions(+) diff --git a/net-misc/sunshine/files/ffmpeg-7.1.1-svt-av1-3.patch b/net-misc/sunshine/files/ffmpeg-7.1.1-svt-av1-3.patch new file mode 100644 index 000000000000..893076fe9d7b --- /dev/null +++ b/net-misc/sunshine/files/ffmpeg-7.1.1-svt-av1-3.patch @@ -0,0 +1,13 @@ +https://github.com/FFmpeg/FFmpeg/commit/d1ed5c06e +--- a/third-party/build-deps/third-party/FFmpeg/FFmpeg/libavcodec/libsvtav1.c ++++ b/third-party/build-deps/third-party/FFmpeg/FFmpeg/libavcodec/libsvtav1.c +@@ -436,5 +436,9 @@ + svt_enc->eos_flag = EOS_NOT_REACHED; + ++#if SVT_AV1_CHECK_VERSION(3, 0, 0) ++ svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, &svt_enc->enc_params); ++#else + svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params); ++#endif + if (svt_ret != EB_ErrorNone) { + return svt_print_error(avctx, svt_ret, "Error initializing encoder handle"); diff --git a/net-misc/sunshine/sunshine-2025.628.4510.ebuild b/net-misc/sunshine/sunshine-2025.628.4510.ebuild index 0873185df138..1067e6784a3d 100644 --- a/net-misc/sunshine/sunshine-2025.628.4510.ebuild +++ b/net-misc/sunshine/sunshine-2025.628.4510.ebuild @@ -185,6 +185,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-2025.122.141614-nvcodec.patch "${FILESDIR}"/${PN}-tray-notification-cb.patch + "${FILESDIR}"/ffmpeg-7.1.1-svt-av1-3.patch ) # Make this mess a bit simpler.
