mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Fix libplacebo renderer build on Windows
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
// This compilation unit contains the implementations of libplacebo header-only libraries.
|
||||
// These must be compiled as C code, so they cannot be placed inside plvk.cpp.
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4068) // unknown pragma
|
||||
#pragma warning(disable: 4244) // double -> float truncation warning
|
||||
#pragma warning(disable: 4267) // size_t -> int truncation warning
|
||||
#endif
|
||||
|
||||
#define PL_LIBAV_IMPLEMENTATION 1
|
||||
#include <libplacebo/utils/libav.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
// Provide a dummy implementation of av_stream_get_side_data() to avoid having to link with libavformat
|
||||
uint8_t *av_stream_get_side_data(const AVStream *stream, enum AVPacketSideDataType type, size_t *size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user