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

Unified Diff: media/base/mime_util_internal.cc

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() Created 4 years, 1 month 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
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;

Powered by Google App Engine
This is Rietveld 408576698