mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
553e7438ac
4 changed files with 22 additions and 3 deletions
|
|
@ -26,6 +26,8 @@ static VPXDecoder::Codec MimeTypeToCodec(const nsACString& aMimeType)
|
|||
{
|
||||
if (aMimeType.EqualsLiteral("video/webm; codecs=vp8")) {
|
||||
return VPXDecoder::Codec::VP8;
|
||||
} else if (aMimeType.EqualsLiteral("video/vp8")) {
|
||||
return VPXDecoder::Codec::VP8;
|
||||
} else if (aMimeType.EqualsLiteral("video/webm; codecs=vp9")) {
|
||||
return VPXDecoder::Codec::VP9;
|
||||
} else if (aMimeType.EqualsLiteral("video/vp9")) {
|
||||
|
|
@ -222,6 +224,8 @@ VPXDecoder::IsVPX(const nsACString& aMimeType, uint8_t aCodecMask)
|
|||
{
|
||||
return ((aCodecMask & VPXDecoder::VP8) &&
|
||||
aMimeType.EqualsLiteral("video/webm; codecs=vp8")) ||
|
||||
((aCodecMask & VPXDecoder::VP8) &&
|
||||
aMimeType.EqualsLiteral("video/vp8")) ||
|
||||
((aCodecMask & VPXDecoder::VP9) &&
|
||||
aMimeType.EqualsLiteral("video/webm; codecs=vp9")) ||
|
||||
((aCodecMask & VPXDecoder::VP9) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue