Issue #1820 - Part 2: Add VP9-in-MP4 support to the decoder

This also adds support in StageFright for VP9.0 FourCCs and consolidates
individual string checks to helpers for WebM
This commit is contained in:
Moonchild 2022-04-27 10:18:49 +00:00 committed by roytam1
commit 648430c9f1
4 changed files with 11 additions and 3 deletions

View file

@ -67,8 +67,7 @@ WebMDecoder::CanHandleMediaType(const nsACString& aMIMETypeExcludingCodecs,
// Note: Only accept VP8/VP9 in a video content type, not in an audio
// content type.
if ((isWebMVideo || isMatroskaVideo) &&
(codec.EqualsLiteral("vp8") || codec.EqualsLiteral("vp8.0") ||
codec.EqualsLiteral("vp9") || codec.EqualsLiteral("vp9.0"))) {
(IsVP8CodecString(codec) || IsVP9CodecString(codec))) {
continue;
}