yuzu/externals/vcpkg/ports/opencv2/0004-add-ffmpeg-missing-defines.patch
2022-07-23 03:01:36 +02:00

13 lines
365 B
Diff
Executable File

--- a/modules/highgui/src/cap_ffmpeg_impl.hpp
+++ b/modules/highgui/src/cap_ffmpeg_impl.hpp
@@ -42,6 +42,9 @@
#define HAVE_FFMPEG_SWSCALE
#define HAVE_GENTOO_FFMPEG
+#define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22)
+#define CODEC_FLAG_GLOBAL_HEADER AV_CODEC_FLAG_GLOBAL_HEADER
+#define AVFMT_RAWPICTURE 0x0020
#include "cap_ffmpeg_api.hpp"
#include <assert.h>