summarylogtreecommitdiffstats
path: root/fix_hevc_in_non_cromeos.patch
blob: 3e5071d5f4eb5e20437413697df8c62eac5f2c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/chrome/renderer/media/chrome_key_systems.cc.orig b/chrome/renderer/media/chrome_key_systems.cc
index 2160697..c9de40c 100644
--- a/chrome/renderer/media/chrome_key_systems.cc.orig
+++ b/chrome/renderer/media/chrome_key_systems.cc
@@ -182,8 +182,12 @@ static SupportedCodecs GetSupportedCodecs(
 #endif  // BUILDFLAG(USE_PROPRIETARY_CODECS)
 #if BUILDFLAG(ENABLE_PLATFORM_HEVC)
       case media::VideoCodec::kCodecHEVC:
+#if BUILDFLAG(IS_CHROMEOS_ASH)
         if (is_secure && base::FeatureList::IsEnabled(
                              chromeos::features::kCdmFactoryDaemon)) {
+#else
+        if (is_secure) {
+#endif
           supported_codecs |= media::EME_CODEC_HEVC_PROFILE_MAIN;
           supported_codecs |= media::EME_CODEC_HEVC_PROFILE_MAIN10;
         }