Changeset 618


Ignore:
Timestamp:
Jul 22, 2006 12:45:37 PM (18 years ago)
Author:
bennylp
Message:

Added PJMEDIA_RTCP_IGNORE_FIRST_PACKETS macro to let application decides how many first RTP packets to ignore when calculating jitter

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r571 r618  
    147147 
    148148/** 
     149 * Tell RTCP to ignore the first N packets when calculating the 
     150 * jitter statistics. From experimentation, the first few packets 
     151 * (25 or so) have relatively big jitter, possibly because during 
     152 * this time, the program is also busy setting up the signaling, 
     153 * so they make the average jitter big. 
     154 * 
     155 * Default: 25. 
     156 */ 
     157#ifndef PJMEDIA_RTCP_IGNORE_FIRST_PACKETS 
     158#   define  PJMEDIA_RTCP_IGNORE_FIRST_PACKETS   25 
     159#endif 
     160 
     161 
     162/** 
    149163 * G.711 Appendix I Packet Lost Concealment (PLC). 
    150164 * Enabled only when floating point is enabled. 
  • pjproject/trunk/pjmedia/src/pjmedia/rtcp.c

    r582 r618  
    275275         * due to other threads working to establish the call 
    276276         */ 
    277         if (sess->transit == 0 || sess->received < 25 ) { 
     277        if (sess->transit == 0 ||  
     278            sess->received < PJMEDIA_RTCP_IGNORE_FIRST_PACKETS)  
     279        { 
    278280            sess->transit = transit; 
    279281            sess->stat.rx.jitter.min = 2000; 
Note: See TracChangeset for help on using the changeset viewer.