GS/Capture: Mute deprecrated warnings

At least while we're targeting multiple FFMpeg versions.
This commit is contained in:
Stenzek 2023-10-02 02:06:22 +10:00 committed by Connor McLaughlin
parent bf2cdc3c9b
commit 329d8acca7
1 changed files with 5 additions and 2 deletions

View File

@ -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