Chromium Code Reviews| 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 { |