Skip to content

Commit 6ee96ea

Browse files
committed
Build ffmpeg with x265 for Android
Signed-off-by: Uilian Ries <[email protected]>
1 parent 11bc994 commit 6ee96ea

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

recipes/ffmpeg/all/conanfile.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ def config_options(self):
270270
self.options.rm_safe("with_libdav1d")
271271
if self.settings.os == "Android":
272272
del self.options.with_libfdk_aac
273-
del self.options.with_libx265
274273

275274
def configure(self):
276275
if self.options.shared:
@@ -306,7 +305,7 @@ def requirements(self):
306305
self.requires("sdl/2.28.5")
307306
if self.options.with_libx264:
308307
self.requires("libx264/cci.20220602")
309-
if self.options.get_safe("with_libx265"):
308+
if self.options.with_libx265:
310309
self.requires("libx265/3.4")
311310
if self.options.with_libvpx:
312311
self.requires("libvpx/1.13.1")
@@ -492,7 +491,7 @@ def opt_append_disable_if_set(args, what, v):
492491
opt_enable_disable("libzmq", self.options.with_zeromq),
493492
opt_enable_disable("sdl2", self.options.with_sdl),
494493
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),
496495
opt_enable_disable("libvpx", self.options.with_libvpx),
497496
opt_enable_disable("libmp3lame", self.options.with_libmp3lame),
498497
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):
517516
"--disable-cuvid", # FIXME: CUVID support
518517
# Licenses
519518
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)
522521
]
523522

524523
# Individual Component Options
@@ -854,7 +853,7 @@ def _add_component(name, dependencies):
854853
avcodec.requires.append("opus::opus")
855854
if self.options.with_libx264:
856855
avcodec.requires.append("libx264::libx264")
857-
if self.options.get_safe("with_libx265"):
856+
if self.options.with_libx265:
858857
avcodec.requires.append("libx265::libx265")
859858
if self.options.with_libvpx:
860859
avcodec.requires.append("libvpx::libvpx")

0 commit comments

Comments
 (0)