mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修复rtsp aac config兼容性bug: #1011
This commit is contained in:
parent
375d36b4c8
commit
6df0ee69e0
@ -27,9 +27,9 @@ namespace mediakit{
|
|||||||
|
|
||||||
Track::Ptr Factory::getTrackBySdp(const SdpTrack::Ptr &track) {
|
Track::Ptr Factory::getTrackBySdp(const SdpTrack::Ptr &track) {
|
||||||
if (strcasecmp(track->_codec.data(), "mpeg4-generic") == 0) {
|
if (strcasecmp(track->_codec.data(), "mpeg4-generic") == 0) {
|
||||||
string aac_cfg_str = FindField(track->_fmtp.data(), "config=", nullptr);
|
string aac_cfg_str = FindField(track->_fmtp.data(), "config=", ";");
|
||||||
if (aac_cfg_str.empty()) {
|
if (aac_cfg_str.empty()) {
|
||||||
aac_cfg_str = FindField(track->_fmtp.data(), "config=", ";");
|
aac_cfg_str = FindField(track->_fmtp.data(), "config=", nullptr);
|
||||||
}
|
}
|
||||||
if (aac_cfg_str.empty()) {
|
if (aac_cfg_str.empty()) {
|
||||||
//如果sdp中获取不到aac config信息,那么在rtp也无法获取,那么忽略该Track
|
//如果sdp中获取不到aac config信息,那么在rtp也无法获取,那么忽略该Track
|
||||||
|
Loading…
Reference in New Issue
Block a user