decoder/ffmpeg: Fix build error with ffmpeg 6.1

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1898
This commit is contained in:
skidoo23 2023-11-21 19:20:41 +01:00 committed by Max Kellermann
parent 7a939746ae
commit 50c1e3738a
2 changed files with 5 additions and 0 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.23.15 (not yet released) ver 0.23.15 (not yet released)
* decoder
- ffmpeg: fix build failure with FFmpeg 6.1
ver 0.23.14 (2023/10/08) ver 0.23.14 (2023/10/08)
* decoder * decoder

View File

@ -26,6 +26,9 @@
extern "C" { extern "C" {
#include <libavutil/mem.h> #include <libavutil/mem.h>
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 29, 100)
#include <libavutil/error.h>
#endif
} }
AvioStream::~AvioStream() AvioStream::~AvioStream()