From 7701a883e3b4e5b9743be0c2d553d1a2ccbbaab2 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 10 Sep 2019 17:08:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98EasyDarwin=E7=9A=84rtsp?= =?UTF-8?q?=E6=8E=A8=E6=B5=81=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index e933cffb..65b24c4e 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -250,7 +250,7 @@ void RtspSession::handleReq_ANNOUNCE(const Parser &parser) { auto full_url = parser.FullUrl(); if(end_of(full_url,".sdp")){ //去除.sdp后缀,防止EasyDarwin推流器强制添加.sdp后缀 - full_url = full_url.substr(0,full_url.length() - 3); + full_url = full_url.substr(0,full_url.length() - 4); _mediaInfo.parse(full_url); }