diff options
author | trav90 <travawine@palemoon.org> | 2018-10-20 17:40:24 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-20 17:40:24 -0500 |
commit | 29f718ef78f1a25ca904c6438b59ffc8e365a750 (patch) | |
tree | 3e27d8a1684eec8a0e9ee0a277df49d862dbcafe /dom/media/fmp4/MP4Decoder.cpp | |
parent | 47a01617ea9bb51ecf40d155155299a0278f09f4 (diff) | |
download | UXP-29f718ef78f1a25ca904c6438b59ffc8e365a750.tar UXP-29f718ef78f1a25ca904c6438b59ffc8e365a750.tar.gz UXP-29f718ef78f1a25ca904c6438b59ffc8e365a750.tar.lz UXP-29f718ef78f1a25ca904c6438b59ffc8e365a750.tar.xz UXP-29f718ef78f1a25ca904c6438b59ffc8e365a750.zip |
Add support for AV1 in MP4
Diffstat (limited to 'dom/media/fmp4/MP4Decoder.cpp')
-rw-r--r-- | dom/media/fmp4/MP4Decoder.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/media/fmp4/MP4Decoder.cpp b/dom/media/fmp4/MP4Decoder.cpp index fdd6f2c7e..5e288d63f 100644 --- a/dom/media/fmp4/MP4Decoder.cpp +++ b/dom/media/fmp4/MP4Decoder.cpp @@ -139,6 +139,14 @@ MP4Decoder::CanHandleMediaType(const MediaContentType& aType, NS_LITERAL_CSTRING("audio/flac"), aType)); continue; } +#ifdef MOZ_AV1 + if (IsAV1CodecString(codec)) { + trackInfos.AppendElement( + CreateTrackInfoWithMIMETypeAndContentTypeExtraParameters( + NS_LITERAL_CSTRING("video/av1"), aType)); + continue; + } +#endif // Note: Only accept H.264 in a video content type, not in an audio // content type. if (IsWhitelistedH264Codec(codec) && isMP4Video) { |