Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2017-11-15 21:15:23 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2017-11-18 01:34:18 +0300
commit15b019e40adb1fdc25f7ba1aca8f473619d07ae7 (patch)
tree256c0e1ee8ce71de97812dc5c86a38426acdbb6e /libavcodec/nvenc.h
parent6fb617077621236a34c2a1b6ae9e2ffc2ccd8902 (diff)
avcodec/nvenc: fix double defined GUID on cygwin
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r--libavcodec/nvenc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index 55ac5f220d..8c1769e768 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -19,6 +19,13 @@
#ifndef AVCODEC_NVENC_H
#define AVCODEC_NVENC_H
+#if CONFIG_D3D11VA
+#define COBJMACROS
+#include "libavutil/hwcontext_d3d11va.h"
+#else
+typedef void ID3D11Device;
+#endif
+
#include "compat/nvenc/nvEncodeAPI.h"
#include "config.h"
@@ -27,13 +34,6 @@
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
-#if CONFIG_D3D11VA
-#define COBJMACROS
-#include "libavutil/hwcontext_d3d11va.h"
-#else
-typedef void ID3D11Device;
-#endif
-
#include "avcodec.h"
#define MAX_REGISTERED_FRAMES 64