添加兼容性适配代码

This commit is contained in:
xiongziliang
2017-09-21 16:51:44 +08:00
parent f68dddfa9c
commit 46d1d80954
3 changed files with 13 additions and 2 deletions

View File

@@ -182,6 +182,9 @@ inline void RtpParser::onGetAudioTrack(const RtspTrack& audio) {
m_strAudioCfg.push_back(cfg2);
makeAdtsHeader(m_strAudioCfg,m_adts);
getAACInfo(m_adts, m_iSampleRate, m_iChannel);
if(m_adts.profile >= 3){
throw std::runtime_error("不支持该profile的AAC");
}
}
inline void RtpParser::onGetVideoTrack(const RtspTrack& video) {