Browse Source

MT#56861 remove pointless case distinction

Change-Id: I5d8abada1c2f97b271081e3cacdedefd9f401ffc
pull/1642/head
Richard Fuchs 3 years ago
parent
commit
6dc1717980
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      daemon/codec.c

+ 3
- 6
daemon/codec.c View File

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


Loading…
Cancel
Save