Index: chromecast/media/base/media_codec_support.h |
diff --git a/chromecast/media/base/media_codec_support.h b/chromecast/media/base/media_codec_support.h |
index ed56ad960ebe991d97df35127811c26e0d036461..cd9eacc7cfa20884a6e0831c99d3cabb77842822 100644 |
--- a/chromecast/media/base/media_codec_support.h |
+++ b/chromecast/media/base/media_codec_support.h |
@@ -9,6 +9,7 @@ |
#include "base/callback.h" |
#include "chromecast/public/media/decoder_config.h" |
+#include "media/base/audio_codecs.h" |
#include "media/base/mime_util.h" |
#include "media/base/video_codecs.h" |
@@ -24,6 +25,10 @@ namespace media { |
// representation of the codec id conforming to RFC 6381) is supported or not. |
::media::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB(); |
+// Converts ::media::AudioCodec to chromecast::media::AudioCodec. Any unknown or |
+// unsupported codec will be converted to chromecast::media::kCodecUnknown. |
+AudioCodec ToCastAudioCodec(const ::media::AudioCodec codec); |
+ |
// Converts ::media::VideoCodec to chromecast::media::VideoCodec. Any unknown or |
// unsupported codec will be converted to chromecast::media::kCodecUnknown. Note |
// |codec_profile| is ignored for codecs other than Dolby Vision. |