зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2e8437ff89
Коммит
42bd35ef04
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче