mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
No issue - Accept also video/vp8 as MIME type
This commit is contained in:
parent
4c9665a4ae
commit
1644bf94f0
1 changed files with 4 additions and 0 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