Merge "res/res_rtp_asterisk: Enable rxjitter calculation for video" into 16

This commit is contained in:
Friendly Automation 2019-04-04 08:33:43 -05:00 committed by Gerrit Code Review
commit b394eed481
1 changed files with 1 additions and 0 deletions

View File

@ -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;