From f78306470bd96885edbfd01acdd3b7f55d0ce81b Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Wed, 27 Mar 2019 19:30:45 +0000 Subject: [PATCH] res/res_rtp_asterisk: Enable rxjitter calculation for video It looks like we're not properly calculating jitter values on received video streams. This patch enables the code that does jitter calculations for those streams. Change-Id: Iaac985808829c8f034db8c57318789c4c8c11392 --- res/res_rtp_asterisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 6a5fb0a159..80f3d068b3 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -6563,6 +6563,7 @@ static struct ast_frame *ast_rtp_interpret(struct ast_rtp_instance *instance, st /* Video -- samples is # of samples vs. 90000 */ if (!rtp->lastividtimestamp) rtp->lastividtimestamp = timestamp; + calc_rxstamp(&rtp->f.delivery, rtp, timestamp, mark); ast_set_flag(&rtp->f, AST_FRFLAG_HAS_TIMING_INFO); rtp->f.ts = timestamp / (rtp_get_rate(rtp->f.subclass.format) / 1000); rtp->f.samples = timestamp - rtp->lastividtimestamp;