diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-18 03:02:08 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-18 03:02:08 +0000 |
commit | 6488b9e10fac00330bc0c9f69034b553269cbc48 (patch) | |
tree | 95b62d1257a67817f5b252145c0fbae61e35ef6d /main | |
parent | 3ca018c3deb3adcbbd928d7734bf23f9bb935881 (diff) |
Don't segfault if you're using a channel driver that doesn't turn RTCP on
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@45452 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/rtp.c b/main/rtp.c index 23c4bbe46..6be71d3e6 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -950,9 +950,9 @@ static void calc_rxstamp(struct timeval *tv, struct ast_rtp *rtp, unsigned int t 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; } |