diff --git a/daemon/codec.c b/daemon/codec.c index 4577b2d5d..8b0b7e331 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2263,7 +2263,7 @@ static void __dtx_send_later(struct codec_timer *ct) { ilogs(dtx, LOG_DEBUG, "RTP media for TS %lu missing, triggering DTX", ts); // synthetic packet - mp_copy.rtp->seq_num += htons(1); + mp_copy.rtp->seq_num = htons(ntohs(mp_copy.rtp->seq_num) + 1); ret = decoder_dtx(ch->decoder, ts, ptime, ch->handler->packet_decoded, ch, &mp_copy);