From 87106ef6550a5c7087e4d0e816b2eb534b75a71d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 2 Apr 2025 13:02:23 -0400 Subject: [PATCH] MT#55283 set correct timestamp Decoding and encoding may have taken some time. Grab an updated "now" before scheduling a packet to send. Change-Id: I9380cb01d77519cf082d87f3a6c6cfc18b8213f8 --- daemon/codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index 5f710b8a9..91852e416 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2408,6 +2408,8 @@ void codec_output_rtp(struct media_packet *mp, struct codec_scheduler *csch, long long ts_diff_us = 0; + gettimeofday(&rtpe_now, NULL); + // ignore scheduling if a sequence number was supplied. in that case we're just doing // passthrough forwarding (or are handling some other prepared RTP stream) and want // to send the packet out immediately.