Index: media/base/mime_util_internal.cc |
diff --git a/media/base/mime_util_internal.cc b/media/base/mime_util_internal.cc |
index 9b9471c4347345a07fdb83ca527e027794c416b6..f5f35f1cb813d8306475a8f6545b219ae69ac068 100644 |
--- a/media/base/mime_util_internal.cc |
+++ b/media/base/mime_util_internal.cc |
@@ -484,8 +484,6 @@ bool MimeUtil::IsCodecSupportedOnAndroid( |
// The following codecs are never supported. |
// ---------------------------------------------------------------------- |
case INVALID_CODEC: |
- case AC3: |
- case EAC3: |
case THEORA: |
return false; |
@@ -590,6 +588,14 @@ bool MimeUtil::IsCodecSupportedOnAndroid( |
// This function is only called on Android which doesn't support Dolby |
// Vision. |
return false; |
+ |
+ case AC3: |
+ case EAC3: |
+#if BUILDFLAG(ENABLE_AC3_EAC3_AUDIO_DEMUXING) |
+ return true; |
+#else |
+ return false; |
+#endif |
} |
return false; |