Fix canPlayType/isTypeSupported for AV1 content

This commit is contained in:
trav90 2018-10-20 14:49:17 -05:00 committed by Roy Tam
commit cbacc81f82
6 changed files with 35 additions and 33 deletions

View file

@ -70,8 +70,7 @@ WebMDecoder::CanHandleMediaType(const nsACString& aMIMETypeExcludingCodecs,
continue;
}
#ifdef MOZ_AV1
if (isWebMVideo && MediaPrefs::AV1Enabled() &&
AOMDecoder::IsSupportedCodec(codec)) {
if (MediaPrefs::AV1Enabled() && IsAV1CodecString(codec)) {
continue;
}
#endif