Bug 1370978 - Enable av1 decoding in Nightly on macOS and Linux. r?gerald,froydnj
Enable av1 decoding with the aom reference library on nightly
build except on Windows and Android where it's not working yet.
This codec is under development and subject to incompatible
changes. We're supporting a specific encoder revision for
testing with website authors to get early feedback.
See media/libaom/README_MOZILLA for the specific codec commit
hash our decoder expects.
MozReview-Commit-ID: JCPiVFg3geC
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -405,19 +405,21 @@ set_config('MOZ_FFMPEG', ffmpeg)
set_define('MOZ_FFMPEG', ffmpeg)
imply_option('--enable-fmp4', ffmpeg, '--enable-ffmpeg')
# Libaom AV1 Video Codec Support
# ==============================================================
option('--enable-av1',
help='Enable libaom for av1 video support')
-@depends('--enable-av1')
-def av1(value):
+@depends('--enable-av1', target, milestone)
+def av1(value, target, milestone):
enabled = bool(value)
+ if value.origin == 'default' and milestone.is_nightly:
+ enabled = target.os not in ('Android', 'WINNT')
if enabled:
return True
set_config('MOZ_AV1', av1)
set_define('MOZ_AV1', av1)
# Built-in fragmented MP4 support.
# ==============================================================