From: Jaroslav Kysela Date: Tue, 22 Apr 2014 09:08:43 +0000 (+0200) Subject: SATIP: Try to improve the uncorrectable error counter X-Git-Tag: v4.1~2115^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08e0e4ebfd7c86ed0bda5d542e496e4df2dc4ec6;p=thirdparty%2Ftvheadend.git SATIP: Try to improve the uncorrectable error counter --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 9917c50be..2732c5b31 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);