mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Don't segfault if you're using a channel driver that doesn't turn RTCP on
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user