diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-21 18:24:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-21 18:24:18 +0000 |
commit | f926b97bb4ca0ec30c10ee9075bd3fd3b1df2be7 (patch) | |
tree | 4a22c9f854108c995e60fbed4e07595b3cbd1925 /games-arcade/performous/files/performous-1.2.0-ffmpeg5.patch | |
parent | bae478b64a6bc9eca66b65bcfa318fc21e7f34bb (diff) |
gentoo auto-resync : 21:01:2023 - 18:24:18
Diffstat (limited to 'games-arcade/performous/files/performous-1.2.0-ffmpeg5.patch')
-rw-r--r-- | games-arcade/performous/files/performous-1.2.0-ffmpeg5.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/games-arcade/performous/files/performous-1.2.0-ffmpeg5.patch b/games-arcade/performous/files/performous-1.2.0-ffmpeg5.patch new file mode 100644 index 000000000000..63f573d53ffe --- /dev/null +++ b/games-arcade/performous/files/performous-1.2.0-ffmpeg5.patch @@ -0,0 +1,25 @@ +https://bugs.gentoo.org/834371 +https://github.com/performous/performous/commit/c3c0d2b7172 +From: Sébastien Gonzalve <sebastien.gonzalve@aliceadsl.fr> +Date: Tue, 3 May 2022 20:26:25 +0200 +Subject: [PATCH] Fix ffmpeg compilation on FC36 + +The new version stats: + +2021-04-27 - 46dac8cf3d - lavf 59.0.100 - avformat.h + av_find_best_stream now uses a const AVCodec ** parameter + for the returned decoder. + +So performous needs a patch to add const when needed. +--- a/game/ffmpeg.cc ++++ b/game/ffmpeg.cc +@@ -251,6 +251,9 @@ FFmpeg::FFmpeg(fs::path const& _filename, int mediaType) : m_filename(_filename) + if (err < 0) throw Error(*this, err); + m_formatContext->flags |= AVFMT_FLAG_GENPTS; + // Find a track and open the codec ++#if (LIBAVFORMAT_VERSION_INT) >= (AV_VERSION_INT(59, 0, 100)) ++ const ++#endif + AVCodec* codec = nullptr; + m_streamId = av_find_best_stream(m_formatContext.get(), static_cast<AVMediaType>(mediaType), -1, -1, &codec, 0); + if (m_streamId < 0) throw Error(*this, m_streamId); |