Fix libplacebo renderer build on Windows
This commit is contained in:
parent
770872238d
commit
2d15382e31
3 changed files with 18 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue