wscript: fix build of videotoolbox hwaccel for iOS

This commit is contained in:
Aman Gupta 2017-07-28 11:17:51 -07:00 committed by Jan Ekström
parent 56742ecdc9
commit a680c643eb
1 changed files with 2 additions and 2 deletions

View File

@ -778,7 +778,7 @@ hwaccel_features = [
}, {
'name': '--videotoolbox-hwaccel-new',
'desc': 'libavcodec videotoolbox hwaccel (new API)',
'deps': [ 'gl-cocoa' ],
'deps_any': [ 'gl-cocoa', 'ios-gl' ],
'func': check_statement('libavcodec/version.h',
'int x[(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 96, 100) && '
' LIBAVCODEC_VERSION_MICRO >= 100)'
@ -787,7 +787,7 @@ hwaccel_features = [
}, {
'name': '--videotoolbox-hwaccel-old',
'desc': 'libavcodec videotoolbox hwaccel (old API)',
'deps': [ 'gl-cocoa' ],
'deps_any': [ 'gl-cocoa', 'ios-gl' ],
'deps_neg': [ 'videotoolbox-hwaccel-new' ],
'func': compose_checks(
check_headers('VideoToolbox/VideoToolbox.h'),