blob: c16e61ce1288b4bd6940db9dedf8ff792786befa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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) {
|