diff options
author | wm4 <wm4@nowhere> | 2015-03-05 17:10:00 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-05 17:10:00 +0100 |
commit | baa354c64c19ea159fe6574263024c41108c4967 (patch) | |
tree | be26bd6608a17eddae6d8588f152664341d76022 | |
parent | 05bb2a9e8a298178acb620204c9a9051e24399ed (diff) | |
download | mpv-baa354c64c19ea159fe6574263024c41108c4967.tar.bz2 mpv-baa354c64c19ea159fe6574263024c41108c4967.tar.xz |
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.
-rw-r--r-- | wscript | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -665,7 +665,7 @@ hwaccel_features = [ 'name': '--vaapi-hwaccel', 'desc': 'libavcodec VAAPI hwaccel', 'deps': [ 'vaapi' ], - 'func': check_true, + 'func': check_statement('libavcodec/vaapi.h', '', use='libav'), } , { 'name': '--vda-hwaccel', 'desc': 'libavcodec VDA hwaccel', @@ -684,12 +684,14 @@ hwaccel_features = [ 'name': '--vdpau-hwaccel', 'desc': 'libavcodec VDPAU hwaccel', 'deps': [ 'vdpau' ], - 'func': check_true, + 'func': check_statement('libavcodec/vdpau.h', + 'av_vdpau_alloc_context()', + use='libav'), }, { 'name': '--dxva2-hwaccel', 'desc': 'libavcodec DXVA2 hwaccel', 'deps': [ 'gdi' ], - 'func': check_true, + 'func': check_statement('libavcodec/dxva2.h', '', use='libav'), } ] |