From 7378650620112bf2cd3d44f2693fdc46297cb57e Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 9 Apr 2021 12:15:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dwindows=E4=B8=8B=E8=8E=B7?= =?UTF-8?q?=E5=8F=96ssrc=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Sdp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index 490890b0..410f6c53 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -659,16 +659,16 @@ void SdpAttrSSRCGroup::parse(const string &str) { SDP_THROW(); } type = std::move(vec[0]); - u.fid.rtp_ssrc = atoi(vec[1].data()); - u.fid.rtx_ssrc = atoi(vec[2].data()); + u.fid.rtp_ssrc = atoll(vec[1].data()) & 0xFFFFFFFF; + u.fid.rtx_ssrc = atoll(vec[2].data()) & 0xFFFFFFFF; } else if (vec.size() == 4) { if (vec[0] != "SIM") { SDP_THROW(); } type = std::move(vec[0]); - u.sim.rtp_ssrc_low = atoi(vec[1].data()); - u.sim.rtp_ssrc_mid = atoi(vec[2].data()); - u.sim.rtp_ssrc_high = atoi(vec[3].data()); + u.sim.rtp_ssrc_low = atoll(vec[1].data()) & 0xFFFFFFFF; + u.sim.rtp_ssrc_mid = atoll(vec[2].data()) & 0xFFFFFFFF; + u.sim.rtp_ssrc_high = atoll(vec[3].data()) & 0xFFFFFFFF; } else { SDP_THROW(); }