@@ -270,7 +270,6 @@ def config_options(self):
270
270
self .options .rm_safe ("with_libdav1d" )
271
271
if self .settings .os == "Android" :
272
272
del self .options .with_libfdk_aac
273
- del self .options .with_libx265
274
273
275
274
def configure (self ):
276
275
if self .options .shared :
@@ -306,7 +305,7 @@ def requirements(self):
306
305
self .requires ("sdl/2.28.5" )
307
306
if self .options .with_libx264 :
308
307
self .requires ("libx264/cci.20220602" )
309
- if self .options .get_safe ( " with_libx265" ) :
308
+ if self .options .with_libx265 :
310
309
self .requires ("libx265/3.4" )
311
310
if self .options .with_libvpx :
312
311
self .requires ("libvpx/1.13.1" )
@@ -492,7 +491,7 @@ def opt_append_disable_if_set(args, what, v):
492
491
opt_enable_disable ("libzmq" , self .options .with_zeromq ),
493
492
opt_enable_disable ("sdl2" , self .options .with_sdl ),
494
493
opt_enable_disable ("libx264" , self .options .with_libx264 ),
495
- opt_enable_disable ("libx265" , self .options .get_safe ( " with_libx265" ) ),
494
+ opt_enable_disable ("libx265" , self .options .with_libx265 ),
496
495
opt_enable_disable ("libvpx" , self .options .with_libvpx ),
497
496
opt_enable_disable ("libmp3lame" , self .options .with_libmp3lame ),
498
497
opt_enable_disable ("libfdk-aac" , self .options .get_safe ("with_libfdk_aac" )),
@@ -517,8 +516,8 @@ def opt_append_disable_if_set(args, what, v):
517
516
"--disable-cuvid" , # FIXME: CUVID support
518
517
# Licenses
519
518
opt_enable_disable ("nonfree" , self .options .get_safe ("with_libfdk_aac" ) or (self .options .with_ssl and (
520
- self .options .with_libx264 or self .options .get_safe ( " with_libx265" ) or self .options .postproc ))),
521
- opt_enable_disable ("gpl" , self .options .with_libx264 or self .options .get_safe ( " with_libx265" ) or self .options .postproc )
519
+ self .options .with_libx264 or self .options .with_libx265 or self .options .postproc ))),
520
+ opt_enable_disable ("gpl" , self .options .with_libx264 or self .options .with_libx265 or self .options .postproc )
522
521
]
523
522
524
523
# Individual Component Options
@@ -854,7 +853,7 @@ def _add_component(name, dependencies):
854
853
avcodec .requires .append ("opus::opus" )
855
854
if self .options .with_libx264 :
856
855
avcodec .requires .append ("libx264::libx264" )
857
- if self .options .get_safe ( " with_libx265" ) :
856
+ if self .options .with_libx265 :
858
857
avcodec .requires .append ("libx265::libx265" )
859
858
if self .options .with_libvpx :
860
859
avcodec .requires .append ("libvpx::libvpx" )
0 commit comments