summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-26 08:10:24 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-26 20:00:41 +0200
commit75791f4dd98d15a074f59a567e53d31ef486bdd5 (patch)
tree0b2f507bee45abba929e25549024920e516ba939 /configure
parent445f8bd29a8e32aa81dce105f464362963cad105 (diff)
downloadmpv-75791f4dd98d15a074f59a567e53d31ef486bdd5.tar.bz2
mpv-75791f4dd98d15a074f59a567e53d31ef486bdd5.tar.xz
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 0a2aaee9a1..235cbc0464 100755
--- a/configure
+++ b/configure
@@ -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