修正ssrc轮回为0时,ssrc重复分配为1的bug(#2327)

This commit is contained in:
ljx0305 2023-03-24 16:19:22 +08:00 committed by GitHub
parent 876aea33f5
commit ca7efd5941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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