修正s_ssrc为0时ssrc为1,s_ssrc为1时ssrc也为1所造成的冲突问题

修正s_ssrc为0时ssrc为1,s_ssrc为1时ssrc也为1所造成的冲突问题
This commit is contained in:
ljx0305 2023-03-24 10:57:08 +08:00 committed by GitHub
parent 48e4705940
commit ba43d1aa3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ RtpCodec::Ptr Factory::getRtpEncoderBySdp(const Sdp::Ptr &sdp) {
uint32_t ssrc = s_ssrc++; uint32_t ssrc = s_ssrc++;
if (!ssrc) { if (!ssrc) {
// ssrc不能为0 // ssrc不能为0
ssrc = 1; ssrc = s_ssrc++;
} }
if (sdp->getTrackType() == TrackVideo) { if (sdp->getTrackType() == TrackVideo) {
//视频的ssrc是偶数方便调试 //视频的ssrc是偶数方便调试