[asterisk-dev] Re: [asterisk-commits] oej: branch 1.4 r61674 - /branches/1.4/main/rtp.c

Olle E Johansson olle at voop.com
Wed Apr 18 13:40:17 MST 2007


18 apr 2007 kl. 22.34 skrev Kevin P. Fleming:

> 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.

Ouch, missed that. Thank you! I'm normally very strict with that...

Tss, Dave. ;-)

/O


More information about the asterisk-dev mailing list