summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-08-15 14:09:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-08-15 14:18:06 +0200
commit9218599ddadb97c3f6b933f7d1a9726cc8da5711 (patch)
treee66886df144f4e67c56534eeb7bd0d623dbd1579
parentf6e20b92a94717a4519bf79ddd416c7c7b3caab5 (diff)
downloadakode-master.tar.gz
akode-master.zip
Fix version check for akode_write and ffmpeg 7.x.HEADmaster
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp b/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp
index 6db8834..f4ec7c3 100644
--- a/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp
+++ b/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp
@@ -50,7 +50,7 @@ extern "C" {
aKode::File *file = (aKode::File*)opaque;
return file->read((char*)buf, size);
}
-#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(60, 16, 100)
+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(61, 0, 100)
static int akode_write(void* opaque, uint8_t *buf, int size)
#else
static int akode_write(void* opaque, const uint8_t *buf, int size)