aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-05 19:52:54 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-05 19:52:54 +0000
commit0ecb5a0fa37f3b873bcd036ee590d67a24e5f469 (patch)
treeefa92d3cbf027841c412abf871197104e1220dd9 /main/rtp.c
parent1b3aa4be885923c2fe20ced67566fa662c3afa55 (diff)
Make this actually evaluate how it was intended to be.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128198 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 4a8bf2b7b..c0c2bf17f 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2646,13 +2646,13 @@ unsigned int ast_rtp_get_qosvalue(struct ast_rtp *rtp, enum ast_rtp_qos_vars val
case AST_RTP_TXJITTER:
return (unsigned int) (rtp->rxjitter * 100.0);
case AST_RTP_RXJITTER:
- return (unsigned int) rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0;
+ return (unsigned int) (rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0);
case AST_RTP_RXPLOSS:
return rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0;
case AST_RTP_TXPLOSS:
return rtp->rtcp ? rtp->rtcp->reported_lost : 0;
case AST_RTP_RTT:
- return (unsigned int) rtp->rtcp ? rtp->rtcp->rtt * 100 : 0;
+ return (unsigned int) (rtp->rtcp ? (rtp->rtcp->rtt * 100) : 0);
}
return 0; /* To make the compiler happy */
}