Browse Source

bustage fixes

Bill Gianopoulos 4 years ago
parent
commit
dabeb5ab90

+ 2 - 1
rel-257/libdav1d/patches/1451926-av1-61a1.patch

@@ -33,7 +33,7 @@ diff --git a/dom/media/MediaPrefs.h b/dom/media/MediaPrefs.h
 diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp b/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp
 --- a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp
 +++ b/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp
-@@ -1,53 +1,56 @@
+@@ -1,53 +1,57 @@
  /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  /* vim:set ts=2 sw=2 sts=2 et cindent: */
  /* This Source Code Form is subject to the terms of the Mozilla Public
@@ -69,6 +69,7 @@ diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp b/dom/media/
 +  if (MediaPrefs::AV1Enabled()) {
 +    supports |= AOMDecoder::IsAV1(aMimeType);
 +  }
++#endif
    MOZ_LOG(sPDMLog, LogLevel::Debug,
            ("Agnostic decoder %s requested type",
             supports ? "supports" : "rejects"));

+ 3 - 3
rel-257/libdav1d/patches/1476975-3-av1-63a1.patch

@@ -93,9 +93,9 @@ diff --git a/dom/media/mediasource/MediaSource.cpp b/dom/media/mediasource/Media
 -          // See bug 1377015.
 -          AOMDecoder::IsSupportedCodec(
 -              containerType->ExtendedType().Codecs().AsString()) ||
-++          (StaticPrefs::MediaAv1Enabled() &&
-++           IsAV1CodecString(
-++             containerType->ExtendedType().Codecs().AsString())) ||
++          (Preferences::GetBool("media.av1.enabled", true) &&
++           IsAV1CodecString(
++             containerType->ExtendedType().Codecs().AsString())) ||
  #endif
            IsWebMForced(aDiagnostics))) {
        return NS_ERROR_DOM_NOT_SUPPORTED_ERR;