mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
build: check whether hwaccels are enabled in FFmpeg
FFmpeg can be compiled with them disabled, and then it won't provide the public headers specific to these APIs, causing mpv compilation failure.
This commit is contained in:
8
wscript
8
wscript
@@ -665,7 +665,7 @@ hwaccel_features = [
|
|||||||
'name': '--vaapi-hwaccel',
|
'name': '--vaapi-hwaccel',
|
||||||
'desc': 'libavcodec VAAPI hwaccel',
|
'desc': 'libavcodec VAAPI hwaccel',
|
||||||
'deps': [ 'vaapi' ],
|
'deps': [ 'vaapi' ],
|
||||||
'func': check_true,
|
'func': check_statement('libavcodec/vaapi.h', '', use='libav'),
|
||||||
} , {
|
} , {
|
||||||
'name': '--vda-hwaccel',
|
'name': '--vda-hwaccel',
|
||||||
'desc': 'libavcodec VDA hwaccel',
|
'desc': 'libavcodec VDA hwaccel',
|
||||||
@@ -684,12 +684,14 @@ hwaccel_features = [
|
|||||||
'name': '--vdpau-hwaccel',
|
'name': '--vdpau-hwaccel',
|
||||||
'desc': 'libavcodec VDPAU hwaccel',
|
'desc': 'libavcodec VDPAU hwaccel',
|
||||||
'deps': [ 'vdpau' ],
|
'deps': [ 'vdpau' ],
|
||||||
'func': check_true,
|
'func': check_statement('libavcodec/vdpau.h',
|
||||||
|
'av_vdpau_alloc_context()',
|
||||||
|
use='libav'),
|
||||||
}, {
|
}, {
|
||||||
'name': '--dxva2-hwaccel',
|
'name': '--dxva2-hwaccel',
|
||||||
'desc': 'libavcodec DXVA2 hwaccel',
|
'desc': 'libavcodec DXVA2 hwaccel',
|
||||||
'deps': [ 'gdi' ],
|
'deps': [ 'gdi' ],
|
||||||
'func': check_true,
|
'func': check_statement('libavcodec/dxva2.h', '', use='libav'),
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user