From 5097a562f0171d9f1a2ba9b39180772d6f277afb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 19 Dec 2016 10:15:45 +0100 Subject: Add FCT continuity check --- src/etisnoop.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/etisnoop.cpp b/src/etisnoop.cpp index 74d84de..1c02d24 100644 --- a/src/etisnoop.cpp +++ b/src/etisnoop.cpp @@ -260,6 +260,8 @@ int eti_analyse(eti_analyse_config_t &config) char sdesc[256]; uint32_t frame_nb = 0, frame_sec = 0, frame_ms = 0, frame_h, frame_m, frame_s; + static int last_fct = -1; + bool running = true; int stream_type = ETI_STREAM_TYPE_NONE; @@ -368,6 +370,12 @@ int eti_analyse(eti_analyse_config_t &config) sprintf(fct_str, "%d", p[4]); int fct = p[4]; printbuf("FCT - Frame Count", 2, p+4, 1, fct_str); + if (last_fct != -1) { + if (last_fct + 1 % 250 != fct) { + printf("FCT not contiguous\n"); + } + } + last_fct = fct; // LIDATA - FC - FICF ficf = (p[5] & 0x80) >> 7; -- cgit v1.2.3