mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 1407919 - Part5 - Extract bit depth information from codec parameter string into VideoInfo::mBitDepth. r=jya
MozReview-Commit-ID: GUwSrpbhOxA --HG-- extra : rebase_source : 2efbf5f6cb61b99059b2d7ae05676af72266d2c2
This commit is contained in:
parent
0052736720
commit
fe306cda12
@ -111,9 +111,16 @@ MP4Decoder::IsSupportedType(const MediaContainerType& aType,
|
||||
continue;
|
||||
}
|
||||
if (IsVP9CodecString(codec)) {
|
||||
trackInfos.AppendElement(
|
||||
auto trackInfo =
|
||||
CreateTrackInfoWithMIMETypeAndContainerTypeExtraParameters(
|
||||
NS_LITERAL_CSTRING("video/vp9"), aType));
|
||||
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;
|
||||
}
|
||||
// Note: Only accept H.264 in a video content type, not in an audio
|
||||
|
Loading…
Reference in New Issue
Block a user