Index: chrome/renderer/media/chrome_key_systems.cc |
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc |
index 7ebb4fe31f1204e58e7e03b5a5eec66c00a91753..2af95c14c936430a2a3a6b17d255ed2db1834ddc 100644 |
--- a/chrome/renderer/media/chrome_key_systems.cc |
+++ b/chrome/renderer/media/chrome_key_systems.cc |
@@ -157,9 +157,15 @@ static void AddPepperBasedWidevine( |
&codecs); |
SupportedCodecs supported_codecs = media::EME_CODEC_NONE; |
+ |
+ // Audio codecs are always supported. |
+ // TODO(sandersd): Include AAC here once the tests are updated. |
+ // TODO(sandersd): Distinguish these from those that are directly supported, |
+ // as those may offer a higher level of protection. |
+ supported_codecs |= media::EME_CODEC_WEBM_OPUS; |
+ supported_codecs |= media::EME_CODEC_WEBM_VORBIS; |
+ |
for (size_t i = 0; i < codecs.size(); ++i) { |
- if (codecs[i] == kCdmSupportedCodecVorbis) |
- supported_codecs |= media::EME_CODEC_WEBM_VORBIS; |
if (codecs[i] == kCdmSupportedCodecVp8) |
supported_codecs |= media::EME_CODEC_WEBM_VP8; |
if (codecs[i] == kCdmSupportedCodecVp9) |