mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-22 14:57:05 +00:00
nvenc: Include config.h before checking for D3D11 support
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
6e0e3e1d8d
commit
3fbd4fc476
@ -19,6 +19,8 @@
|
|||||||
#ifndef AVCODEC_NVENC_H
|
#ifndef AVCODEC_NVENC_H
|
||||||
#define AVCODEC_NVENC_H
|
#define AVCODEC_NVENC_H
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#if CONFIG_D3D11VA
|
#if CONFIG_D3D11VA
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#include "libavutil/hwcontext_d3d11va.h"
|
#include "libavutil/hwcontext_d3d11va.h"
|
||||||
@ -28,8 +30,6 @@ typedef void ID3D11Device;
|
|||||||
|
|
||||||
#include "compat/nvenc/nvEncodeAPI.h"
|
#include "compat/nvenc/nvEncodeAPI.h"
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include "compat/cuda/dynlink_loader.h"
|
#include "compat/cuda/dynlink_loader.h"
|
||||||
#include "libavutil/fifo.h"
|
#include "libavutil/fifo.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user