Commit b53ad2cc by xiongguangjie

for rtsp sdp pt more check

parent 3eaf7897
......@@ -212,7 +212,7 @@ void SdpParser::load(const string &sdp) {
char codec[16] = {0};
sscanf(rtpmap.data(), "%d", &pt);
if (track._pt != pt) {
if (track._pt != pt && track._pt != 0xff) {
//pt不匹配
it = track._attr.erase(it);
continue;
......@@ -237,7 +237,7 @@ void SdpParser::load(const string &sdp) {
auto &fmtp = it->second;
int pt;
sscanf(fmtp.data(), "%d", &pt);
if (track._pt != pt) {
if (track._pt != pt && track._pt != 0xff) {
//pt不匹配
it = track._attr.erase(it);
continue;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论