Changeset 3907 for pjproject/branches/1.x/pjmedia/src/pjmedia/rtcp.c
- Timestamp:
- Dec 12, 2011 8:06:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjmedia/src/pjmedia/rtcp.c
r3553 r3907 616 616 } 617 617 618 /* "Normalize" rtt value that is exceptionally high. 619 * For such values, "normalize" the rtt to be three times 620 * the average value. 618 #if defined(PJMEDIA_RTCP_NORMALIZE_FACTOR) && PJMEDIA_RTCP_NORMALIZE_FACTOR!=0 619 /* "Normalize" rtt value that is exceptionally high. For such 620 * values, "normalize" the rtt to be PJMEDIA_RTCP_NORMALIZE_FACTOR 621 * times the average value. 621 622 */ 622 if (rtt > ((unsigned)sess->stat.rtt.mean*3) && sess->stat.rtt.n!=0) 623 if (rtt > ((unsigned)sess->stat.rtt.mean * 624 PJMEDIA_RTCP_NORMALIZE_FACTOR) && sess->stat.rtt.n!=0) 623 625 { 624 626 unsigned orig_rtt = rtt; 625 rtt = sess->stat.rtt.mean *3;626 PJ_LOG(5,(sess->name, 627 rtt = sess->stat.rtt.mean * PJMEDIA_RTCP_NORMALIZE_FACTOR; 628 PJ_LOG(5,(sess->name, 627 629 "RTT value %d usec is normalized to %d usec", 628 630 orig_rtt, rtt)); 629 631 } 630 632 #endif 631 633 TRACE_((sess->name, "RTCP RTT is set to %d usec", rtt)); 632 634
Note: See TracChangeset
for help on using the changeset viewer.