[asterisk-dev] Re: [asterisk-commits] oej: branch 1.4 r61674 -
/branches/1.4/main/rtp.c
Kevin P. Fleming
kpfleming at digium.com
Wed Apr 18 13:34:31 MST 2007
asterisk-commits at lists.digium.com wrote:
> Modified: branches/1.4/main/rtp.c
> URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?view=diff&rev=61674&r1=61673&r2=61674
> ==============================================================================
> --- branches/1.4/main/rtp.c (original)
> +++ branches/1.4/main/rtp.c Wed Apr 18 15:28:53 2007
> @@ -925,12 +925,14 @@
> lsr = (double)((ntohl(rtcpheader[i + 4]) & 0xffff0000) >> 16) + (double)((double)(ntohl(rtcpheader[i + 4]) & 0xffff) / 1000000.);
> dlsr = (double)(ntohl(rtcpheader[i + 5])/65536.);
> rtt = a - dlsr - lsr;
> + if (rtt>=0) {
> rtp->rtcp->accumulated_transit += rtt;
> rtp->rtcp->rtt = rtt;
> if (rtp->rtcp->maxrtt<rtt)
> rtp->rtcp->maxrtt = rtt;
> if (rtp->rtcp->minrtt>rtt)
> rtp->rtcp->minrtt = rtt;
> + }
> }
> rtp->rtcp->reported_jitter = ntohl(rtcpheader[i + 3]);
> rtp->rtcp->reported_lost = ntohl(rtcpheader[i + 1]) & 0xffffff;
This patch does not follow code formatting guidelines; the statements
inside the block are not indented.
More information about the asterisk-dev
mailing list