diff options
Diffstat (limited to 'fix_hevc_in_non_cromeos_r1.patch')
-rw-r--r-- | fix_hevc_in_non_cromeos_r1.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fix_hevc_in_non_cromeos_r1.patch b/fix_hevc_in_non_cromeos_r1.patch new file mode 100644 index 000000000000..b4143c5dcb15 --- /dev/null +++ b/fix_hevc_in_non_cromeos_r1.patch @@ -0,0 +1,18 @@ +diff --git a/chrome/renderer/media/chrome_key_systems.cc.orig b/chrome/renderer/media/chrome_key_systems.cc +index 11ab5f8..a3a9eef 100644 +--- a/chrome/renderer/media/chrome_key_systems.cc.orig ++++ b/chrome/renderer/media/chrome_key_systems.cc +@@ -184,10 +184,12 @@ static SupportedCodecs GetSupportedCodecs( + #if BUILDFLAG(IS_CHROMEOS_ASH) + if (is_secure && base::FeatureList::IsEnabled( + chromeos::features::kCdmFactoryDaemon)) { ++#else // BUILDFLAG(IS_CHROMEOS_ASH) ++ if (is_secure) { ++#endif + supported_codecs |= media::EME_CODEC_HEVC_PROFILE_MAIN; + supported_codecs |= media::EME_CODEC_HEVC_PROFILE_MAIN10; + } +-#endif // BUILDFLAG(IS_CHROMEOS_ASH) + break; + #endif // BUILDFLAG(ENABLE_PLATFORM_HEVC) + default: |