mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #1820 - Part 6: Extract bit depth information from codec parameter string into VideoInfo::mBitDepth.
This commit is contained in:
parent
a4e69db6a4
commit
14f0f80cd1
1 changed files with 10 additions and 3 deletions
|
|
@ -143,9 +143,16 @@ MP4Decoder::CanHandleMediaType(const MediaContentType& aType,
|
|||
continue;
|
||||
}
|
||||
if (IsVP9CodecString(codec)) {
|
||||
trackInfos.AppendElement(
|
||||
CreateTrackInfoWithMIMETypeAndContainerTypeExtraParameters(
|
||||
NS_LITERAL_CSTRING("video/vp9"), aType));
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue