mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-11 07:44:12 +02:00
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>
16 lines
447 B
Diff
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) {
|