diff --git a/pcsx2/GS/GSCapture.cpp b/pcsx2/GS/GSCapture.cpp index 38bcb3c5c0..bf318e7e4b 100644 --- a/pcsx2/GS/GSCapture.cpp +++ b/pcsx2/GS/GSCapture.cpp @@ -36,6 +36,11 @@ #include #include +#ifdef __clang__ +// We're using deprecated fields because we're targeting multiple ffmpeg versions. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + extern "C" { #include "libavcodec/avcodec.h" #include "libavcodec/version.h" @@ -50,8 +55,6 @@ extern "C" { #include "libswresample/version.h" } -#include - // Compatibility with both ffmpeg 4.x and 5.x. #if (LIBAVFORMAT_VERSION_MAJOR < 59) #define ff_const59