From b53ad2cc2df51aaab3054e3f90d8fe09d05ea5f3 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Sun, 17 Jul 2022 00:30:12 +0800 Subject: [PATCH] for rtsp sdp pt more check --- src/Rtsp/Rtsp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtsp/Rtsp.cpp b/src/Rtsp/Rtsp.cpp index f7cbed17..52d86468 100644 --- a/src/Rtsp/Rtsp.cpp +++ b/src/Rtsp/Rtsp.cpp @@ -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;