Ignore:
Timestamp:
Jun 29, 2006 9:51:09 AM (18 years ago)
Author:
bennylp
Message:

Minor bug fix and enhancements: (1) fixed bug that caused out-of-order status to be raised when incoming sequence number is random, (2) changed RTCP to only calculate jitter when the RTP timestamp of the packet is different than previous one, and (3) change RTP to randomize initial sequence number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/rtp.c

    r408 r567  
    6060    } 
    6161 
    62     /* Initialize session.  
    63      * Initial sequence number SHOULD be random, according to RFC 3550. 
    64      */ 
     62    /* Initialize session. */ 
     63    pj_memset(ses, 0, sizeof(*ses)); 
     64 
     65    /* Initial sequence number SHOULD be random, according to RFC 3550. */ 
    6566    ses->out_extseq = pj_rand(); 
    6667    ses->peer_ssrc = 0; 
    6768     
    68     /* Sequence number will be initialized when the first RTP packet  
    69      * is receieved. 
    70      */ 
    71  
    7269    /* Build default header for outgoing RTP packet. */ 
    73     pj_memset(ses, 0, sizeof(*ses)); 
    7470    ses->out_hdr.v = RTP_VERSION; 
    7571    ses->out_hdr.p = 0; 
Note: See TracChangeset for help on using the changeset viewer.