Merge "res/res_rtp_asterisk: Enable rxjitter calculation for video"
This commit is contained in:
commit
99648272e5
|
@ -6563,6 +6563,7 @@ static struct ast_frame *ast_rtp_interpret(struct ast_rtp_instance *instance, st
|
||||||
/* Video -- samples is # of samples vs. 90000 */
|
/* Video -- samples is # of samples vs. 90000 */
|
||||||
if (!rtp->lastividtimestamp)
|
if (!rtp->lastividtimestamp)
|
||||||
rtp->lastividtimestamp = timestamp;
|
rtp->lastividtimestamp = timestamp;
|
||||||
|
calc_rxstamp(&rtp->f.delivery, rtp, timestamp, mark);
|
||||||
ast_set_flag(&rtp->f, AST_FRFLAG_HAS_TIMING_INFO);
|
ast_set_flag(&rtp->f, AST_FRFLAG_HAS_TIMING_INFO);
|
||||||
rtp->f.ts = timestamp / (rtp_get_rate(rtp->f.subclass.format) / 1000);
|
rtp->f.ts = timestamp / (rtp_get_rate(rtp->f.subclass.format) / 1000);
|
||||||
rtp->f.samples = timestamp - rtp->lastividtimestamp;
|
rtp->f.samples = timestamp - rtp->lastividtimestamp;
|
||||||
|
|
Loading…
Reference in New Issue