mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
for rtsp sdp pt more check
This commit is contained in:
parent
3eaf7897a7
commit
b53ad2cc2d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user