From 6dc1717980d56ed3c6ce30127adabb3981cefde7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 7 Mar 2023 14:41:38 -0500 Subject: [PATCH] MT#56861 remove pointless case distinction Change-Id: I5d8abada1c2f97b271081e3cacdedefd9f401ffc --- daemon/codec.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/daemon/codec.c b/daemon/codec.c index 67c388461..dcdd0db04 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2395,12 +2395,9 @@ static int handler_func_passthrough_ssrc(struct codec_handler *h, struct media_p if (!handler_silence_block(h, mp)) return 0; - uint32_t ts = 0; - if (mp->rtp) { - ts = ntohl(mp->rtp->timestamp); - codec_calc_jitter(mp->ssrc_in, ts, h->source_pt.clock_rate, &mp->tv); - codec_calc_lost(mp->ssrc_in, ntohs(mp->rtp->seq_num)); - } + uint32_t ts = ntohl(mp->rtp->timestamp); + codec_calc_jitter(mp->ssrc_in, ts, h->source_pt.clock_rate, &mp->tv); + codec_calc_lost(mp->ssrc_in, ntohs(mp->rtp->seq_num)); // substitute out SSRC etc mp->rtp->ssrc = htonl(mp->ssrc_out->parent->h.ssrc);