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:
parent
cc557c4d60
commit
59792cb0b8
2
NEWS
2
NEWS
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue