[Pkg-voip-commits] [janus] 79/163: fix rtcp delay calculation
Jonas Smedegaard
dr at jones.dk
Sat Oct 28 01:22:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.5-1
in repository janus.
commit 7b3ddb26262a543dcc3c6f3bf8bfec3e32dfad03
Author: Pete Hicks <jph at bebo.com>
Date: Fri Sep 1 18:04:50 2017 +0000
fix rtcp delay calculation
---
rtcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rtcp.c b/rtcp.c
index a887368..5507145 100644
--- a/rtcp.c
+++ b/rtcp.c
@@ -541,7 +541,7 @@ int janus_rtcp_report_block(rtcp_context *ctx, report_block *rb) {
rb->flcnpl = htonl(lost | fraction);
if(ctx->lsr > 0) {
rb->lsr = htonl(ctx->lsr);
- rb->delay = htonl(((now - ctx->lsr_ts) / 1000000) << 16);
+ rb->delay = htonl(((now - ctx->lsr_ts) << 16) / 1000000);
} else {
rb->lsr = 0;
rb->delay = 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list