@@ -256,6 +256,10 @@ def config_options(self):
256
256
del self .options .with_avfoundation
257
257
if not self ._version_supports_libsvtav1 :
258
258
self .options .rm_safe ("with_libsvtav1" )
259
+ if self .settings .os == "Android" :
260
+ del self .options .with_libfdk_aac
261
+ # FIXME: https://github.com/conan-io/conan-center-index/issues/23726
262
+ self .options .rm_safe ("with_libdav1d" )
259
263
260
264
def configure (self ):
261
265
if self .options .shared :
@@ -280,7 +284,7 @@ def requirements(self):
280
284
if self .options .with_openjpeg :
281
285
self .requires ("openjpeg/2.5.2" )
282
286
if self .options .with_openh264 :
283
- self .requires ("openh264/2.3 .1" )
287
+ self .requires ("openh264/2.4 .1" )
284
288
if self .options .with_vorbis :
285
289
self .requires ("vorbis/1.3.7" )
286
290
if self .options .with_opus :
@@ -297,7 +301,7 @@ def requirements(self):
297
301
self .requires ("libvpx/1.13.1" )
298
302
if self .options .with_libmp3lame :
299
303
self .requires ("libmp3lame/3.100" )
300
- if self .options .with_libfdk_aac :
304
+ if self .options .get_safe ( " with_libfdk_aac" ) :
301
305
self .requires ("libfdk_aac/2.0.3" )
302
306
if self .options .with_libwebp :
303
307
self .requires ("libwebp/1.3.2" )
@@ -479,7 +483,7 @@ def opt_append_disable_if_set(args, what, v):
479
483
opt_enable_disable ("libx265" , self .options .with_libx265 ),
480
484
opt_enable_disable ("libvpx" , self .options .with_libvpx ),
481
485
opt_enable_disable ("libmp3lame" , self .options .with_libmp3lame ),
482
- opt_enable_disable ("libfdk-aac" , self .options .with_libfdk_aac ),
486
+ opt_enable_disable ("libfdk-aac" , self .options .get_safe ( " with_libfdk_aac" ) ),
483
487
opt_enable_disable ("libwebp" , self .options .with_libwebp ),
484
488
opt_enable_disable ("libaom" , self .options .with_libaom ),
485
489
opt_enable_disable ("openssl" , self .options .with_ssl == "openssl" ),
@@ -502,7 +506,7 @@ def opt_append_disable_if_set(args, what, v):
502
506
"--disable-cuda" , # FIXME: CUDA support
503
507
"--disable-cuvid" , # FIXME: CUVID support
504
508
# Licenses
505
- opt_enable_disable ("nonfree" , self .options .with_libfdk_aac or (self .options .with_ssl and (
509
+ opt_enable_disable ("nonfree" , self .options .get_safe ( " with_libfdk_aac" ) or (self .options .with_ssl and (
506
510
self .options .with_libx264 or self .options .with_libx265 or self .options .postproc ))),
507
511
opt_enable_disable ("gpl" , self .options .with_libx264 or self .options .with_libx265 or self .options .postproc )
508
512
]
@@ -818,6 +822,8 @@ def _add_component(name, dependencies):
818
822
avdevice .frameworks .append ("AVFoundation" )
819
823
if self .options .get_safe ("with_audiotoolbox" ):
820
824
avdevice .frameworks .append ("CoreAudio" )
825
+ if self .settings .os == "Android" and not self .options .shared :
826
+ avdevice .system_libs .extend (["android" , "camera2ndk" , "mediandk" ])
821
827
822
828
if self .options .avcodec :
823
829
if self .options .with_zlib :
@@ -842,7 +848,7 @@ def _add_component(name, dependencies):
842
848
avcodec .requires .append ("libvpx::libvpx" )
843
849
if self .options .with_libmp3lame :
844
850
avcodec .requires .append ("libmp3lame::libmp3lame" )
845
- if self .options .with_libfdk_aac :
851
+ if self .options .get_safe ( " with_libfdk_aac" ) :
846
852
avcodec .requires .append ("libfdk_aac::libfdk_aac" )
847
853
if self .options .with_libwebp :
848
854
avcodec .requires .append ("libwebp::libwebp" )
0 commit comments