Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Unified Diff: media/base/mime_util_internal.cc

Issue 2572573007: Use passthrough decoder for (E)AC3 formats (Closed)
Patch Set: Sanity checks Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/audio_buffer_unittest.cc ('k') | media/base/mime_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « media/base/audio_buffer_unittest.cc ('k') | media/base/mime_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698