26 lines
773 B
Diff
26 lines
773 B
Diff
From 50c1e3738a672f933560247b5527d365d17b1c02 Mon Sep 17 00:00:00 2001
|
|
From: skidoo23 <skidoo@web.de>
|
|
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/src/decoder/plugins/FfmpegIo.cxx b/src/decoder/plugins/FfmpegIo.cxx
|
|
index 5b5c8b40e3..3c3323ce8a 100644
|
|
--- a/src/decoder/plugins/FfmpegIo.cxx
|
|
+++ b/src/decoder/plugins/FfmpegIo.cxx
|
|
@@ -26,6 +26,9 @@
|
|
|
|
extern "C" {
|
|
#include <libavutil/mem.h>
|
|
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 29, 100)
|
|
+#include <libavutil/error.h>
|
|
+#endif
|
|
}
|
|
|
|
AvioStream::~AvioStream()
|