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

@ -142,6 +142,12 @@ MP4Decoder::CanHandleMediaType(const MediaContentType& aType,
NS_LITERAL_CSTRING("audio/flac"), aType));
continue;
}
if (IsVP9CodecString(codec)) {
trackInfos.AppendElement(
CreateTrackInfoWithMIMETypeAndContainerTypeExtraParameters(
NS_LITERAL_CSTRING("video/vp9"), aType));
continue;
}
#ifdef MOZ_AV1
if (IsAV1CodecString(codec)) {
trackInfos.AppendElement(