aboutsummaryrefslogtreecommitdiffstats
path: root/src/figalyser.hpp
diff options
context:
space:
mode:
authorKenneth Mortensen <kmo@protelevision.com>2017-12-11 10:59:13 +0100
committerKenneth Mortensen <kmo@protelevision.com>2017-12-11 10:59:13 +0100
commite3c95fbeb8f29db76c8c95ac8c4984c6126cce3e (patch)
treec6c7ed857d22b85aa63a2559dfab79cf4844520f /src/figalyser.hpp
parent6e8d21f63be63a76dfcefc9911c487ce50491721 (diff)
downloadetisnoop-e3c95fbeb8f29db76c8c95ac8c4984c6126cce3e.tar.gz
etisnoop-e3c95fbeb8f29db76c8c95ac8c4984c6126cce3e.tar.bz2
etisnoop-e3c95fbeb8f29db76c8c95ac8c4984c6126cce3e.zip
Fixed seg fault when used with Mode III. Now room for 4 FIGs
Diffstat (limited to 'src/figalyser.hpp')
-rw-r--r--src/figalyser.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/figalyser.hpp b/src/figalyser.hpp
index bcbb3b6..10d0e92 100644
--- a/src/figalyser.hpp
+++ b/src/figalyser.hpp
@@ -32,11 +32,11 @@ class FIGalyser
m_figs[m_fib].push_back(fig);
}
- void analyse()
+ void analyse(int mid)
{
printf("FIC ");
- for (size_t fib = 0; fib < m_figs.size(); fib++) {
+ for (size_t fib = 0; fib < (mid==3?4:3); fib++) {
int consumed = 7;
int fic_size = 0;
printf("[%1zu ", fib);
@@ -80,7 +80,7 @@ class FIGalyser
void clear()
{
m_figs.clear();
- m_figs.resize(3);
+ m_figs.resize(4);
}
private: