diff options
Diffstat (limited to 'dom/media/fmp4/MP4Decoder.cpp')
-rw-r--r-- | dom/media/fmp4/MP4Decoder.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dom/media/fmp4/MP4Decoder.cpp b/dom/media/fmp4/MP4Decoder.cpp index 7a340d8297..23f09324b4 100644 --- a/dom/media/fmp4/MP4Decoder.cpp +++ b/dom/media/fmp4/MP4Decoder.cpp @@ -134,6 +134,19 @@ MP4Decoder::CanHandleMediaType(const MediaContentType& aType, NS_LITERAL_CSTRING("audio/flac"), aType)); continue; } + if (IsVP9CodecString(codec)) { + auto trackInfo = + CreateTrackInfoWithMIMETypeAndContentTypeExtraParameters( + NS_LITERAL_CSTRING("video/vp9"), aType); + uint8_t profile = 0; + uint8_t level = 0; + uint8_t bitDepth = 0; + if (ExtractVPXCodecDetails(codec, profile, level, bitDepth)) { + trackInfo->GetAsVideoInfo()->mBitDepth = bitDepth; + } + trackInfos.AppendElement(Move(trackInfo)); + continue; + } #ifdef MOZ_AV1 if (IsAV1CodecString(codec)) { trackInfos.AppendElement( |