Bug 1339204 - Adds VP9 and VP9.0 as supported types in the MP4Decoder r=cpearce

MozReview-Commit-ID: 4vZGvb7nbVb

--HG--
extra : rebase_source : 26c190bd29953178fe3762a6d4426a5566d21d40
This commit is contained in:
Jay Harris 2017-02-14 10:31:02 +13:00
Родитель 2e8437ff89
Коммит 42bd35ef04
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -132,6 +132,12 @@ MP4Decoder::IsSupportedType(const MediaContainerType& aType,
NS_LITERAL_CSTRING("audio/flac"), aType));
continue;
}
if (codec.EqualsLiteral("vp9") || codec.EqualsLiteral("vp9.0")) {
trackInfos.AppendElement(
CreateTrackInfoWithMIMETypeAndContainerTypeExtraParameters(
NS_LITERAL_CSTRING("video/vp9"), aType));
continue;
}
// Note: Only accept H.264 in a video content type, not in an audio
// content type.
if (IsWhitelistedH264Codec(codec) && isVideo) {