@@ -2384,24 +2384,24 @@ AS_IF([test "${enable_vda}" != "no"], [
2384
2384
if test "${SYS}" = "darwin"; then
2385
2385
AS_IF ( [ test "x${have_avcodec}" = "xyes"] , [
2386
2386
AC_CHECK_HEADERS ( VideoDecodeAcceleration/VDADecoder.h ,
2387
- [
2388
- AC_CHECK_HEADERS ( libavcodec/vda.h , [
2389
- have_avcodec_vda="yes"
2390
- ] ,[
2391
- AS_IF ( [ test "${enable_vda}" = "yes"] ,
2392
- [ AC_MSG_ERROR ( [ vda is present but libavcodec/vda.h is missing] ) ] ,
2393
- [ AC_MSG_WARN ( [ vda is present but libavcodec/vda.h is missing ] ) ] )
2394
- ] )
2395
- ] ,[
2396
- AS_IF ( [ test "${enable_vda}" = "yes"] ,
2397
- [ AC_MSG_ERROR ( [ Could not find required VideoDecodeAcceleration/VDADecoder.h] ) ] ,
2398
- [ AC_MSG_WARN ( [ VideoDecodeAcceleration/VDADecoder.h not found] ) ] )
2387
+ [
2388
+ PKG_CHECK_EXISTS([ libavcodec >= 55.19.0] , [
2389
+ have_avcodec_vda="yes"
2390
+ ] ,[
2391
+ AS_IF ( [ test "${enable_vda}" = "yes"] ,
2392
+ [ AC_MSG_ERROR ( [ libavcodec >= 55.19.0 is required for VDA decoding] ) ] ,
2393
+ [ AC_MSG_WARN ( [ libavcodec >= 55.19.0 is required for VDA decoding] ) ] )
2399
2394
] )
2395
+ ] ,[
2396
+ AS_IF ( [ test "${enable_vda}" = "yes"] ,
2397
+ [ AC_MSG_ERROR ( [ Could not find required VideoDecodeAcceleration/VDADecoder.h] ) ] ,
2398
+ [ AC_MSG_WARN ( [ VideoDecodeAcceleration/VDADecoder.h not found] ) ] )
2399
+ ] )
2400
2400
] ,[
2401
2401
AS_IF ( [ test "x${enable_vda}" != "x"] , [
2402
2402
AC_MSG_ERROR ( [ --enable-vda and --disable-avcodec options are mutually exclusive.] )
2403
2403
] )
2404
- ] )
2404
+ ] )
2405
2405
fi
2406
2406
] )
2407
2407
AM_CONDITIONAL([ HAVE_AVCODEC_VDA] , [ test "${have_avcodec_vda}" = "yes"] )
0 commit comments