mirror of
https://github.com/mpv-player/mpv
synced 2024-10-18 10:25:02 +02:00
configure: fix VDA autodetection based on FFmpeg support
The original condition was too weak, requiring only the header. The header is installed is FFmpeg regardless of the presence of VDA on the system, so just perform a check on the `ff_vda_create_decoder` function.
This commit is contained in:
parent
445f8bd29a
commit
75791f4dd9
3
configure
vendored
3
configure
vendored
@ -2833,7 +2833,8 @@ if test "$_vda" = auto ; then
|
||||
_vda=no
|
||||
if test "$_avutil_has_refcounting" = "yes" ; then
|
||||
header_check VideoDecodeAcceleration/VDADecoder.h &&
|
||||
header_check libavcodec/vda.h && _vda=yes
|
||||
statement_check libavcodec/vda.h 'ff_vda_create_decoder(NULL, NULL, NULL)' &&
|
||||
_vda=yes
|
||||
else
|
||||
res_comment="libavutil too old"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user