fix windows compile

This commit is contained in:
孙羽
2026-05-27 21:34:09 +08:00
parent 6b94ceea14
commit 116a4b8368
8 changed files with 48 additions and 44 deletions
+9
View File
@@ -21,6 +21,11 @@
#include "ffmpegencoder.h"
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
extern "C" {
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
@@ -1038,4 +1043,8 @@ const AVCodec *FFmpegEncoder::GetEncoder(ExportCodec::Codec c,
return nullptr;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}