]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SATIP: Try to improve the uncorrectable error counter
authorJaroslav Kysela <perex@perex.cz>
Tue, 22 Apr 2014 09:08:43 +0000 (11:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 5 May 2014 20:00:37 +0000 (22:00 +0200)
src/input/mpegts/satip/satip_frontend.c

index 9917c50be2b5ff11042551bd48e0846097dc1125..2732c5b3157990033a215932c58d6f951267d5c0 100644 (file)
@@ -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);