mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Put AV1 codec behind a pref
Disabled by default.
This commit is contained in:
parent
368651059a
commit
6676331d30
4 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue