diff --git a/daemon/jitter_buffer.c b/daemon/jitter_buffer.c index 3ca9512c1..410cbcb78 100644 --- a/daemon/jitter_buffer.c +++ b/daemon/jitter_buffer.c @@ -191,7 +191,7 @@ static int handle_clock_drift(struct media_packet *mp) { struct jitter_buffer *jb = mp->stream->jb; int seq_diff = ntohs(mp->rtp->seq_num) - jb->first_seq; - if((seq_diff % CLOCK_DRIFT_MULT) != 0) + if(((seq_diff % CLOCK_DRIFT_MULT) != 0) || !seq_diff) return 0; unsigned long ts = ntohl(mp->rtp->timestamp);