From 400687a32fca2e9b9238fd0789499ae9e3cfc8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 15 Aug 2024 14:09:25 +0200 Subject: Fix version check for akode_write and ffmpeg 7.x. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 9218599ddadb97c3f6b933f7d1a9726cc8da5711) --- akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1