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

Unified Diff: chromecast/media/cma/base/decoder_config_adapter.cc

Issue 2503233003: Add enumerations for compressed (E)AC3 sample format (Closed)
Patch Set: Fix proto 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
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/base/decoder_config_adapter.cc
diff --git a/chromecast/media/cma/base/decoder_config_adapter.cc b/chromecast/media/cma/base/decoder_config_adapter.cc
index 544154fd8c6bfe80a397e5660d1677ebe8102876..d9039b296518c1338cefa23189c8a3b08ae1c198 100644
--- a/chromecast/media/cma/base/decoder_config_adapter.cc
+++ b/chromecast/media/cma/base/decoder_config_adapter.cc
@@ -44,6 +44,8 @@ AudioCodec ToAudioCodec(const ::media::AudioCodec audio_codec) {
SampleFormat ToSampleFormat(const ::media::SampleFormat sample_format) {
switch (sample_format) {
case ::media::kUnknownSampleFormat:
+ case ::media::kSampleFormatAc3:
+ case ::media::kSampleFormatEac3:
return kUnknownSampleFormat;
case ::media::kSampleFormatU8:
return kSampleFormatU8;
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698