修正ssrc轮回为0时,ssrc重复分配为1的bug(#2327)
This commit is contained in:
parent
876aea33f5
commit
ca7efd5941
|
|
@ -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是偶数,方便调试
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue