gentoo-ebuilds/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch
Haelwenn (lanodan) Monnier 5673186acd
games-arcade/oshu: Version bump, 2.0.2
Closes: https://bugs.gentoo.org/834370
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/24499
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2022-05-26 09:36:33 +03:00

16 lines
447 B
Diff

diff --git a/./lib/audio/stream.cc.old b/./lib/audio/stream.cc
index 808851f..09eb4fb 100644
--- a/./lib/audio/stream.cc.old
+++ b/./lib/audio/stream.cc
@@ -193,7 +193,11 @@ static int open_demuxer(const char *url, oshu::stream *stream)
stream->demuxer,
AVMEDIA_TYPE_AUDIO,
-1, -1,
+#if LIBAVCODEC_VERSION_MAJOR < 59
+ &stream->codec,
+#else
(const AVCodec**)&stream->codec,
+#endif
0
);
if (rc < 0 || stream->codec == NULL) {