mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Merge "res/res_rtp_asterisk: Enable rxjitter calculation for video" into 13
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user