mirror of https://github.com/PCSX2/pcsx2.git
GS/Capture: Mute deprecrated warnings
At least while we're targeting multiple FFMpeg versions.
This commit is contained in:
parent
bf2cdc3c9b
commit
329d8acca7
|
@ -36,6 +36,11 @@
|
|||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
#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 <mutex>
|
||||
|
||||
// Compatibility with both ffmpeg 4.x and 5.x.
|
||||
#if (LIBAVFORMAT_VERSION_MAJOR < 59)
|
||||
#define ff_const59
|
||||
|
|
Loading…
Reference in New Issue