diff options
author | trav90 <travawine@palemoon.org> | 2018-10-20 08:24:28 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-20 08:24:28 -0500 |
commit | 6ddf66542bfbc90056ca86023da7bdefcec31aa8 (patch) | |
tree | 4025c6a417a5dee99ceafb8b4aa6e9863dfa24f6 /dom/media/webm | |
parent | d2499ead93dc4298c0882fe98902acb1b5209f99 (diff) | |
download | uxp-6ddf66542bfbc90056ca86023da7bdefcec31aa8.tar.gz |
Put AV1 codec behind a pref
Disabled by default.
Diffstat (limited to 'dom/media/webm')
-rw-r--r-- | dom/media/webm/WebMDecoder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/media/webm/WebMDecoder.cpp b/dom/media/webm/WebMDecoder.cpp index 32feda6c04..5a32793ac0 100644 --- a/dom/media/webm/WebMDecoder.cpp +++ b/dom/media/webm/WebMDecoder.cpp @@ -8,6 +8,7 @@ #ifdef MOZ_AV1 #include "AOMDecoder.h" #endif +#include "MediaPrefs.h" #include "MediaDecoderStateMachine.h" #include "WebMDemuxer.h" #include "WebMDecoder.h" @@ -69,7 +70,8 @@ WebMDecoder::CanHandleMediaType(const nsACString& aMIMETypeExcludingCodecs, continue; } #ifdef MOZ_AV1 - if (isWebMVideo && AOMDecoder::IsSupportedCodec(codec)) { + if (isWebMVideo && MediaPrefs::AV1Enabled() && + AOMDecoder::IsSupportedCodec(codec)) { continue; } #endif |