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:
Alfred E. Heggestad 2013-08-31 08:41:16 +00:00
parent 7a47164d4e
commit b2f436deae

View file

@ -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;