patch: (s)rtp sequence fix
increase robustness during initial packetloss, ref: http://tools.ietf.org/html/rfc4568#section-6.4 (last paragraph) http://tools.ietf.org/html/rfc3711#section-3.3.1
This commit is contained in:
parent
7a47164d4e
commit
b2f436deae
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ int rtp_alloc(struct rtp_sock **rsp)
|
|||
|
||||
sa_init(&rs->rtcp_peer, AF_UNSPEC);
|
||||
|
||||
rs->enc.seq = rand_u16();
|
||||
rs->enc.seq = rand_u16() & 0x7fff;
|
||||
rs->enc.ssrc = rand_u32();
|
||||
|
||||
*rsp = rs;
|
||||
|
|
Loading…
Add table
Reference in a new issue