From 08e0e4ebfd7c86ed0bda5d542e496e4df2dc4ec6 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 22 Apr 2014 11:08:43 +0200 Subject: [PATCH] SATIP: Try to improve the uncorrectable error counter --- src/input/mpegts/satip/satip_frontend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 9917c50b..2732c5b3 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1072,7 +1072,8 @@ satip_frontend_input_thread ( void *aux ) if (seq == -1) seq = nseq; else if (((seq + 1) & 0xffff) != nseq) - mmi->mmi_stats.unc++; + mmi->mmi_stats.unc += ((c - pos) / 188) * + (uint32_t)((uint16_t)nseq-(uint16_t)(seq+1)); seq = nseq; /* Process */ sbuf_append(&sb, p + pos, c - pos);