Bug 1370978 - Enable av1 decoding in Nightly on macOS and Linux. r?gerald,froydnj draft
authorRalph Giles <giles@mozilla.com>
Wed, 07 Jun 2017 10:29:59 -0700
changeset 591228 4a8eaa657059298ea31179c6e8d6b53acaa960a1
parent 591227 ac63c4871cfb2caa57f07ebb7afd2b23eb98159c
child 632474 529b17a579ee92dce35d8d1d3cad1cfe12417bc6
push id63009
push userbmo:giles@thaumas.net
push dateThu, 08 Jun 2017 21:25:44 +0000
reviewersgerald, froydnj
bugs1370978
milestone55.0a1
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
toolkit/moz.configure
--- 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.
 # ==============================================================