summaryrefslogtreecommitdiff
path: root/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch')
-rw-r--r--games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch b/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch
new file mode 100644
index 000000000000..c16e61ce1288
--- /dev/null
+++ b/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch
@@ -0,0 +1,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) {