mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Add support for AV1 in MP4
This commit is contained in:
parent
8dd06e64c3
commit
1b0277eca5
1 changed files with 8 additions and 0 deletions
|
|
@ -147,6 +147,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue