summaryrefslogtreecommitdiffstats
path: root/dom/media/webm/WebMDecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/webm/WebMDecoder.cpp')
-rw-r--r--dom/media/webm/WebMDecoder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/media/webm/WebMDecoder.cpp b/dom/media/webm/WebMDecoder.cpp
index 32feda6c0..5a32793ac 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