aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-21 20:51:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-21 20:51:54 +0100
commit2ef4b8e1148deea14ee8a2c6e402aea33620b5b3 (patch)
tree12d0ffa5f2fb08d91357f0fabff7fb11410388fe
parentbf85725a5355bcec483a9ab35e287f0cffa097bb (diff)
downloadetisnoop-2ef4b8e1148deea14ee8a2c6e402aea33620b5b3.tar.gz
etisnoop-2ef4b8e1148deea14ee8a2c6e402aea33620b5b3.tar.bz2
etisnoop-2ef4b8e1148deea14ee8a2c6e402aea33620b5b3.zip
Fix FCT discontinuity detection
-rw-r--r--src/etisnoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etisnoop.cpp b/src/etisnoop.cpp
index 1c02d24..7137d2e 100644
--- a/src/etisnoop.cpp
+++ b/src/etisnoop.cpp
@@ -371,7 +371,7 @@ int eti_analyse(eti_analyse_config_t &config)
int fct = p[4];
printbuf("FCT - Frame Count", 2, p+4, 1, fct_str);
if (last_fct != -1) {
- if (last_fct + 1 % 250 != fct) {
+ if ((last_fct + 1) % 250 != fct) {
printf("FCT not contiguous\n");
}
}