diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-19 10:15:45 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-19 10:15:45 +0100 |
commit | 5097a562f0171d9f1a2ba9b39180772d6f277afb (patch) | |
tree | 502a80b0492a18278b95b455b3d1e22f080314f2 /src/etisnoop.cpp | |
parent | cba531bbad8481db47318ac8146c54252100f2ad (diff) | |
download | etisnoop-5097a562f0171d9f1a2ba9b39180772d6f277afb.tar.gz etisnoop-5097a562f0171d9f1a2ba9b39180772d6f277afb.tar.bz2 etisnoop-5097a562f0171d9f1a2ba9b39180772d6f277afb.zip |
Add FCT continuity check
Diffstat (limited to 'src/etisnoop.cpp')
-rw-r--r-- | src/etisnoop.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |