mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
rtsp忽略无效的aac track
This commit is contained in:
parent
a68368a7f3
commit
68d29ba025
@ -41,8 +41,8 @@ Track::Ptr Factory::getTrackBySdp(const SdpTrack::Ptr &track) {
|
|||||||
aac_cfg_str = FindField(track->_fmtp.data(), "config=", ";");
|
aac_cfg_str = FindField(track->_fmtp.data(), "config=", ";");
|
||||||
}
|
}
|
||||||
if (aac_cfg_str.empty()) {
|
if (aac_cfg_str.empty()) {
|
||||||
//延后获取adts头
|
//如果sdp中获取不到aac config信息,那么在rtp也无法获取,那么忽略该Track
|
||||||
return std::make_shared<AACTrack>();
|
return nullptr;
|
||||||
}
|
}
|
||||||
string aac_cfg;
|
string aac_cfg;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user