From 6df0ee69e01391d78abe1185bab23f47a9c8f3cd Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 30 Jul 2021 16:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtsp=20aac=20config=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7bug:=20#1011?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/Factory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extension/Factory.cpp b/src/Extension/Factory.cpp index 25c0e0fd..c9d9da00 100644 --- a/src/Extension/Factory.cpp +++ b/src/Extension/Factory.cpp @@ -27,9 +27,9 @@ namespace mediakit{ Track::Ptr Factory::getTrackBySdp(const SdpTrack::Ptr &track) { 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()) { - aac_cfg_str = FindField(track->_fmtp.data(), "config=", ";"); + aac_cfg_str = FindField(track->_fmtp.data(), "config=", nullptr); } if (aac_cfg_str.empty()) { //如果sdp中获取不到aac config信息,那么在rtp也无法获取,那么忽略该Track