You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/nvenc: fix double defined GUID on cygwin
This commit is contained in:
@@ -77,7 +77,7 @@ extern "C" {
|
|||||||
typedef RECT NVENC_RECT;
|
typedef RECT NVENC_RECT;
|
||||||
#else
|
#else
|
||||||
// =========================================================================================
|
// =========================================================================================
|
||||||
#ifndef GUID
|
#if !defined(GUID) && !defined(GUID_DEFINED)
|
||||||
/*!
|
/*!
|
||||||
* \struct GUID
|
* \struct GUID
|
||||||
* Abstracts the GUID structure for non-windows platforms.
|
* Abstracts the GUID structure for non-windows platforms.
|
||||||
|
@@ -19,6 +19,13 @@
|
|||||||
#ifndef AVCODEC_NVENC_H
|
#ifndef AVCODEC_NVENC_H
|
||||||
#define 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 "compat/nvenc/nvEncodeAPI.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@@ -27,13 +34,6 @@
|
|||||||
#include "libavutil/fifo.h"
|
#include "libavutil/fifo.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
|
|
||||||
#if CONFIG_D3D11VA
|
|
||||||
#define COBJMACROS
|
|
||||||
#include "libavutil/hwcontext_d3d11va.h"
|
|
||||||
#else
|
|
||||||
typedef void ID3D11Device;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
|
|
||||||
#define MAX_REGISTERED_FRAMES 64
|
#define MAX_REGISTERED_FRAMES 64
|
||||||
|
Reference in New Issue
Block a user