Index: media/base/mime_util_internal.cc |
diff --git a/media/base/mime_util_internal.cc b/media/base/mime_util_internal.cc |
index 11a763e74ab3c0054e6a39db8a3bcdbac462b19b..8e65534643d91cea5185cdf2474e3542add77ff3 100644 |
--- a/media/base/mime_util_internal.cc |
+++ b/media/base/mime_util_internal.cc |
@@ -553,8 +553,6 @@ bool MimeUtil::IsCodecSupportedOnPlatform( |
// The following codecs are never supported. |
// ---------------------------------------------------------------------- |
case INVALID_CODEC: |
- case AC3: |
- case EAC3: |
case THEORA: |
return false; |
@@ -655,6 +653,14 @@ bool MimeUtil::IsCodecSupportedOnPlatform( |
// MediaPlayer only supports VP9 in WebM. |
return mime_type_lower_case == "video/webm"; |
} |
+ |
+ case AC3: |
+ case EAC3: |
+#if BUILDFLAG(ENABLE_AC3_EAC3_AUDIO_DEMUXING) |
+ return true; |
+#else |
+ return false; |
+#endif |
} |
return false; |