From 50c1e3738a672f933560247b5527d365d17b1c02 Mon Sep 17 00:00:00 2001 From: skidoo23 Date: Tue, 21 Nov 2023 19:20:41 +0100 Subject: [PATCH] decoder/ffmpeg: Fix build error with ffmpeg 6.1 Closes https://github.com/MusicPlayerDaemon/MPD/issues/1898 --- NEWS | 2 ++ src/decoder/plugins/FfmpegIo.cxx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 23cda989e..48fa2401a 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.23.15 (not yet released) +* decoder + - ffmpeg: fix build failure with FFmpeg 6.1 ver 0.23.14 (2023/10/08) * decoder diff --git a/src/decoder/plugins/FfmpegIo.cxx b/src/decoder/plugins/FfmpegIo.cxx index 5b5c8b40e..3c3323ce8 100644 --- a/src/decoder/plugins/FfmpegIo.cxx +++ b/src/decoder/plugins/FfmpegIo.cxx @@ -26,6 +26,9 @@ extern "C" { #include +#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 29, 100) +#include +#endif } AvioStream::~AvioStream()