decoder/ffmpeg: wrap FFmpeg include in "extern C"

Commit ebae25d175 added that #include, but forgot to wrap it in
"extern C", so the linker tried to look up C++ symbols, causing linker
failure.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1582
This commit is contained in:
Max Kellermann 2022-07-27 10:59:48 +02:00
parent cc557c4d60
commit 59792cb0b8
2 changed files with 6 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.23.9 (not yet released) ver 0.23.9 (not yet released)
* decoder
- ffmpeg: support FFmpeg 5.1
* output * output
- pipewire: set app icon - pipewire: set app icon
* improve iconv detection * improve iconv detection

View File

@ -21,10 +21,13 @@
#define __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS
#include "FfmpegIo.hxx" #include "FfmpegIo.hxx"
#include "libavutil/mem.h"
#include "../DecoderAPI.hxx" #include "../DecoderAPI.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
extern "C" {
#include <libavutil/mem.h>
}
AvioStream::~AvioStream() AvioStream::~AvioStream()
{ {
if (io != nullptr) { if (io != nullptr) {