]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/res_rtp_asterisk: Enable rxjitter calculation for video
authorMatthew Fredrickson <creslin@digium.com>
Wed, 27 Mar 2019 19:30:45 +0000 (19:30 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Tue, 2 Apr 2019 15:48:27 +0000 (15:48 +0000)
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

index 909d82a81644847dd95ffa606ca960630847bad9..e384c234ba54e6322d5893e344d997b6458f9b1a 100644 (file)
@@ -5847,6 +5847,7 @@ static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc
                /* 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;