Index: media/base/key_systems.cc |
diff --git a/media/base/key_systems.cc b/media/base/key_systems.cc |
index ef16ad65fbdc6bab3830ea998e7f9c7f5ec402ee..2bd244a1e38c2da85b2990324da9e65a71a7788d 100644 |
--- a/media/base/key_systems.cc |
+++ b/media/base/key_systems.cc |
@@ -22,7 +22,6 @@ |
#include "media/base/media_switches.h" |
#include "ppapi/features/features.h" |
#include "media/base/media_client.h" |
-#include "media/media_features.h" |
#include "third_party/widevine/cdm/widevine_cdm_common.h" |
namespace media { |
@@ -44,10 +43,10 @@ |
static const NamedCodec kMimeTypeToCodecMasks[] = { |
{"audio/webm", EME_CODEC_WEBM_AUDIO_ALL}, |
{"video/webm", EME_CODEC_WEBM_VIDEO_ALL}, |
-#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#if defined(USE_PROPRIETARY_CODECS) |
{"audio/mp4", EME_CODEC_MP4_AUDIO_ALL}, |
{"video/mp4", EME_CODEC_MP4_VIDEO_ALL} |
-#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#endif // defined(USE_PROPRIETARY_CODECS) |
}; |
// Mapping between codec names and enum values. |
@@ -58,7 +57,7 @@ |
{"vp8.0", EME_CODEC_WEBM_VP8}, // VP8. |
{"vp9", EME_CODEC_WEBM_VP9}, // VP9. |
{"vp9.0", EME_CODEC_WEBM_VP9}, // VP9. |
-#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#if defined(USE_PROPRIETARY_CODECS) |
{"vp09", EME_CODEC_MP4_VP9}, // VP9 in MP4. |
{"mp4a", EME_CODEC_MP4_AAC}, // AAC. |
{"avc1", EME_CODEC_MP4_AVC1}, // AVC1. |
@@ -67,7 +66,7 @@ |
{"hev1", EME_CODEC_MP4_HEVC}, // HEV1. |
{"hvc1", EME_CODEC_MP4_HEVC}, // HVC1. |
#endif |
-#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#endif // defined(USE_PROPRIETARY_CODECS) |
}; |
class ClearKeyProperties : public KeySystemProperties { |
@@ -75,7 +74,7 @@ |
std::string GetKeySystemName() const override { return kClearKeyKeySystem; } |
bool IsSupportedInitDataType(EmeInitDataType init_data_type) const override { |
-#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#if defined(USE_PROPRIETARY_CODECS) |
if (init_data_type == EmeInitDataType::CENC) |
return true; |
#endif |
@@ -89,9 +88,9 @@ |
// VP9 support is device dependent. |
SupportedCodecs codecs = EME_CODEC_WEBM_ALL; |
-#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#if defined(USE_PROPRIETARY_CODECS) |
codecs |= EME_CODEC_MP4_ALL; |
-#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) |
+#endif // defined(USE_PROPRIETARY_CODECS) |
return codecs; |
} |