зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1916508 - H264 6.2 exists and is supported on some platforms. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D221047
This commit is contained in:
Родитель
f49e5f6e56
Коммит
da6fa7faf8
|
@ -38,12 +38,12 @@ static bool IsWhitelistedH264Codec(const nsAString& aCodec) {
|
|||
// http://msdn.microsoft.com/en-us/library/windows/desktop/dd797815%28v=vs.85%29.aspx
|
||||
// "The Media Foundation H.264 video decoder is a Media Foundation Transform
|
||||
// that supports decoding of Baseline, Main, and High profiles, up to level
|
||||
// 5.1.". We extend the limit to level 5.2, relying on the decoder to handle
|
||||
// 5.1.". We extend the limit to level 6.2, relying on the decoder to handle
|
||||
// any potential errors, the level limit being rather arbitrary.
|
||||
// We also report that we can play Extended profile, as there are
|
||||
// bitstreams that are Extended compliant that are also Baseline compliant.
|
||||
return level >= H264_LEVEL::H264_LEVEL_1 &&
|
||||
level <= H264_LEVEL::H264_LEVEL_5_2 &&
|
||||
level <= H264_LEVEL::H264_LEVEL_6_2 &&
|
||||
(profile == H264_PROFILE_BASE || profile == H264_PROFILE_MAIN ||
|
||||
profile == H264_PROFILE_EXTENDED || profile == H264_PROFILE_HIGH);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче