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

Unified Diff: media/base/android/sdk_media_codec_bridge.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/android/sdk_media_codec_bridge.cc
diff --git a/media/base/android/sdk_media_codec_bridge.cc b/media/base/android/sdk_media_codec_bridge.cc
index e9a8f2f105d51ffa1ef7b461b87f5609aa8fafa1..5401d0a91960a8c0219379328fe5c899da222574 100644
--- a/media/base/android/sdk_media_codec_bridge.cc
+++ b/media/base/android/sdk_media_codec_bridge.cc
@@ -60,6 +60,12 @@ static const std::string AudioCodecToAndroidMimeType(const AudioCodec& codec) {
return "audio/opus";
case kCodecAAC:
return "audio/mp4a-latm";
+ case kCodecRaw:
+ return "audio/raw";
+ case kCodecAC3:
+ return "audio/ac3";
+ case kCodecEAC3:
+ return "audio/eac3";
default:
return std::string();
}

Powered by Google App Engine
This is Rietveld 408576698