summaryrefslogtreecommitdiff
path: root/dom/media/platforms
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-02-07 19:58:04 +0100
committerMoonchild <moonchild@palemoon.org>2023-02-07 19:58:04 +0100
commit1f32c17fcf767a366b1547f51fccc7dcb13ff719 (patch)
treea77003c1eee1dfb3c68da13a1d198d74fd40124a /dom/media/platforms
parent8b26fcd0de658ca745d0265b1c106be1435ea4cf (diff)
downloaduxp-1f32c17fcf767a366b1547f51fccc7dcb13ff719.tar.gz
No issue - Accept also `video/vp8` as MIME type
Diffstat (limited to 'dom/media/platforms')
-rw-r--r--dom/media/platforms/agnostic/VPXDecoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/media/platforms/agnostic/VPXDecoder.cpp b/dom/media/platforms/agnostic/VPXDecoder.cpp
index f2f84487fc..8b60f9a6a7 100644
--- a/dom/media/platforms/agnostic/VPXDecoder.cpp
+++ b/dom/media/platforms/agnostic/VPXDecoder.cpp
@@ -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")) {