You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
configure: Check if ID3D11VideoDecoder exists, not just the header to enable d3d11va
Fixes build with some mingw-w64 versions, that have got the header but not the interface declaration. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
committed by
Martin Storsjö
parent
08d006f5a8
commit
31de41babc
4
configure
vendored
4
configure
vendored
@@ -1530,6 +1530,7 @@ TOOLCHAIN_FEATURES="
|
|||||||
TYPES_LIST="
|
TYPES_LIST="
|
||||||
CONDITION_VARIABLE_Ptr
|
CONDITION_VARIABLE_Ptr
|
||||||
DXVA_PicParams_HEVC
|
DXVA_PicParams_HEVC
|
||||||
|
ID3D11VideoDecoder
|
||||||
socklen_t
|
socklen_t
|
||||||
struct_addrinfo
|
struct_addrinfo
|
||||||
struct_group_source_req
|
struct_group_source_req
|
||||||
@@ -1983,7 +1984,7 @@ zmbv_decoder_deps="zlib"
|
|||||||
zmbv_encoder_deps="zlib"
|
zmbv_encoder_deps="zlib"
|
||||||
|
|
||||||
# hardware accelerators
|
# hardware accelerators
|
||||||
d3d11va_deps="d3d11_h dxva_h"
|
d3d11va_deps="d3d11_h dxva_h ID3D11VideoDecoder"
|
||||||
dxva2_deps="dxva2api_h"
|
dxva2_deps="dxva2api_h"
|
||||||
vaapi_deps="va_va_h"
|
vaapi_deps="va_va_h"
|
||||||
vda_deps="VideoDecodeAcceleration_VDADecoder_h pthreads"
|
vda_deps="VideoDecodeAcceleration_VDADecoder_h pthreads"
|
||||||
@@ -4233,6 +4234,7 @@ check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
|
|||||||
check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
|
check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
|
||||||
|
|
||||||
check_type "windows.h dxva.h" "DXVA_PicParams_HEVC"
|
check_type "windows.h dxva.h" "DXVA_PicParams_HEVC"
|
||||||
|
check_type "windows.h d3d11.h" "ID3D11VideoDecoder"
|
||||||
|
|
||||||
if ! disabled w32threads && ! enabled pthreads; then
|
if ! disabled w32threads && ! enabled pthreads; then
|
||||||
check_func_headers "windows.h process.h" _beginthreadex &&
|
check_func_headers "windows.h process.h" _beginthreadex &&
|
||||||
|
Reference in New Issue
Block a user