From 3c49b3737e990ad8894c429944c2d12b0f76a6a5 Mon Sep 17 00:00:00 2001 From: yapingcat <32125710+yapingcat@users.noreply.github.com> Date: Mon, 17 May 2021 09:20:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug=20rtcp=20sr=E5=8C=85=E7=9A=84=20ssrc?= =?UTF-8?q?=20=E5=92=8Crtp=E5=8C=85=E4=B8=AD=E7=9A=84=E4=B8=80=E8=87=B4?= 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 4c413a6b..4c4b3a64 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -1139,7 +1139,7 @@ void RtspSession::updateRtcpContext(const RtpPacket::Ptr &rtp){ }; auto ssrc = rtp->getSSRC(); - auto rtcp = _push_src ? rtcp_ctx->createRtcpRR(ssrc + 1, ssrc) : rtcp_ctx->createRtcpSR(ssrc + 1); + auto rtcp = _push_src ? rtcp_ctx->createRtcpRR(ssrc + 1, ssrc) : rtcp_ctx->createRtcpSR(ssrc); auto rtcp_sdes = RtcpSdes::create({SERVER_NAME}); rtcp_sdes->items.type = (uint8_t)SdesType::RTCP_SDES_CNAME; rtcp_sdes->items.ssrc = htonl(ssrc);