vcpkg/ports/discordcoreapi/0001-Add-extern-C-to-avcodec.patch
Matthew Oliver 61eab021ba
[discordcoreapi] Fix compilation with ffmpeg. (#28494)
* [discordcoreapi] Fix compilation with ffmpeg.

* Update versions.
2022-12-28 12:57:42 -08:00

15 lines
347 B
Diff

diff --git a/Source/AudioDecoder.cpp b/Source/AudioDecoder.cpp
index 42bd4543..ff210878 100644
--- a/Source/AudioDecoder.cpp
+++ b/Source/AudioDecoder.cpp
@@ -25,7 +25,9 @@
#include <discordcoreapi/Utilities.hpp>
#include <discordcoreapi/AudioDecoder.hpp>
+extern "C" {
#include <libavcodec/avcodec.h>
+}
namespace DiscordCoreInternal {