remove-main-main10-profile-limit.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. diff --git a/media/base/supported_types.cc b/media/base/supported_types.cc
  2. index 2ebbdf9..861dc50 100644
  3. --- a/media/base/supported_types.cc
  4. +++ b/media/base/supported_types.cc
  5. @@ -205,28 +205,7 @@ bool IsAudioCodecProprietary(AudioCodec codec) {
  6. #endif // !BUILDFLAG(USE_PROPRIETARY_CODECS)
  7. bool IsHevcProfileSupported(const VideoType& type) {
  8. - if (!IsColorSpaceSupported(type.color_space))
  9. - return false;
  10. -
  11. -#if BUILDFLAG(ENABLE_PLATFORM_HEVC)
  12. -#if BUILDFLAG(PLATFORM_HAS_OPTIONAL_HEVC_SUPPORT)
  13. -#if BUILDFLAG(IS_CHROMEOS_LACROS)
  14. - // TODO(b/171813538): For Lacros, the supplemental profile cache will be
  15. - // asking lacros-gpu, but we will be doing decoding in ash-gpu. Until the
  16. - // codec detection is plumbed through to ash-gpu we can do this extra check
  17. - // for HEVC support.
  18. - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
  19. - switches::kLacrosEnablePlatformHevc)) {
  20. return true;
  21. - }
  22. -#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
  23. - return GetSupplementalProfileCache()->IsProfileSupported(type.profile);
  24. -#else
  25. - return true;
  26. -#endif // BUIDFLAG(PLATFORM_HAS_OPTIONAL_HEVC_SUPPORT)
  27. -#else
  28. - return false;
  29. -#endif // BUILDFLAG(ENABLE_PLATFORM_HEVC)
  30. }
  31. bool IsVp9ProfileSupported(const VideoType& type) {