Commit d9b32ee8 authored by qinmin's avatar qinmin Committed by Commit bot

Mark android supports H264 main/high profile

Most hardware OEMs provides codecs to support H264 main/high profile.
The current way of declaring them as unsupported is too restrictive.

BUG=407741

Review URL: https://codereview.chromium.org/506283002

Cr-Commit-Position: refs/heads/master@{#292395}
parent 0f9a254e
...@@ -477,6 +477,8 @@ static bool IsCodecSupportedOnAndroid(MimeUtil::Codec codec) { ...@@ -477,6 +477,8 @@ static bool IsCodecSupportedOnAndroid(MimeUtil::Codec codec) {
case MimeUtil::MPEG4_AAC_LC: case MimeUtil::MPEG4_AAC_LC:
case MimeUtil::MPEG4_AAC_SBRv1: case MimeUtil::MPEG4_AAC_SBRv1:
case MimeUtil::H264_BASELINE: case MimeUtil::H264_BASELINE:
case MimeUtil::H264_MAIN:
case MimeUtil::H264_HIGH:
case MimeUtil::VP8: case MimeUtil::VP8:
case MimeUtil::VORBIS: case MimeUtil::VORBIS:
return true; return true;
...@@ -487,11 +489,6 @@ static bool IsCodecSupportedOnAndroid(MimeUtil::Codec codec) { ...@@ -487,11 +489,6 @@ static bool IsCodecSupportedOnAndroid(MimeUtil::Codec codec) {
// MPEG-2 variants of AAC are not supported on Android. // MPEG-2 variants of AAC are not supported on Android.
return false; return false;
case MimeUtil::H264_MAIN:
case MimeUtil::H264_HIGH:
// H.264 Main and High profiles are not supported on Android.
return false;
case MimeUtil::VP9: case MimeUtil::VP9:
// VP9 is supported only in KitKat+ (API Level 19). // VP9 is supported only in KitKat+ (API Level 19).
return base::android::BuildInfo::GetInstance()->sdk_int() >= 19; return base::android::BuildInfo::GetInstance()->sdk_int() >= 19;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment