Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: Trace RTP discontinuity
  • Loading branch information
perexg committed Jan 7, 2015
1 parent 1afee16 commit 900b20e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -1429,8 +1429,10 @@ satip_frontend_input_thread ( void *aux )
nseq = (p[2] << 8) | p[3];
if (seq == -1)
seq = nseq;
else if (((seq + 1) & 0xffff) != nseq)
else if (((seq + 1) & 0xffff) != nseq) {
unc += ((c - pos) / 188) * (uint32_t)((uint16_t)nseq-(uint16_t)(seq+1));
tvhtrace("satip", "RTP discontinuity (%i != %i)", seq + 1, nseq);
}
seq = nseq;
/* Process */
tsdebug_write((mpegts_mux_t *)lm, p + pos, c - pos);
Expand Down

0 comments on commit 900b20e

Please sign in to comment.