[asterisk-commits] file: branch 1.4 r45452 - /branches/1.4/main/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Oct 17 20:02:08 MST 2006


Author: file
Date: Tue Oct 17 22:02:08 2006
New Revision: 45452

URL: http://svn.digium.com/view/asterisk?rev=45452&view=rev
Log:
Don't segfault if you're using a channel driver that doesn't turn RTCP on

Modified:
    branches/1.4/main/rtp.c

Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?rev=45452&r1=45451&r2=45452&view=diff
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Tue Oct 17 22:02:08 2006
@@ -950,9 +950,9 @@
 	if (d<0)
 		d=-d;
 	rtp->rxjitter += (1./16.) * (d - rtp->rxjitter);
-	if (rtp->rxjitter > rtp->rtcp->maxrxjitter)
+	if (rtp->rtcp && rtp->rxjitter > rtp->rtcp->maxrxjitter)
 		rtp->rtcp->maxrxjitter = rtp->rxjitter;
-	if (rtp->rxjitter < rtp->rtcp->minrxjitter)
+	if (rtp->rtcp && rtp->rxjitter < rtp->rtcp->minrxjitter)
 		rtp->rtcp->minrxjitter = rtp->rxjitter;
 }
 



More information about the asterisk-commits mailing list