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

Unified Diff: media/mp4/aac.cc

Issue 16114009: Add AAC codec specific data for MSE on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: media/mp4/aac.cc
diff --git a/media/mp4/aac.cc b/media/mp4/aac.cc
index f92dd2feb928b9fc69cf1e9c6337c1bb19f513dd..7c1c613f3387e449e341ecc0fcf00656e920ae49 100644
--- a/media/mp4/aac.cc
+++ b/media/mp4/aac.cc
@@ -189,6 +189,15 @@ bool AAC::ConvertEsdsToADTS(std::vector<uint8>* buffer) const {
return true;
}
+#if defined(OS_ANDROID)
+std::vector<uint8> AAC::GetCodecSpecificData() const {
+ std::vector<uint8> csd;
acolwell GONE FROM CHROMIUM 2013/05/29 22:37:25 I don't believe this is sufficient for all cases.
qinmin 2013/05/30 03:07:55 Done.
+ csd.push_back(profile_ << 3 | frequency_index_ >> 1);
+ csd.push_back((frequency_index_ & 0x01) << 7 | channel_config_ << 3);
+ return csd;
+}
+#endif
+
// Currently this function only support GASpecificConfig defined in
// ISO 14496 Part 3 Table 4.1 - Syntax of GASpecificConfig()
bool AAC::SkipDecoderGASpecificConfig(BitReader* bit_reader) const {
« no previous file with comments | « media/mp4/aac.h ('k') | media/mp4/mp4_stream_parser.cc » ('j') | media/mp4/mp4_stream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698