diff options
author | Kenneth Mortensen <kmo@protelevision.com> | 2017-12-11 10:59:13 +0100 |
---|---|---|
committer | Kenneth Mortensen <kmo@protelevision.com> | 2017-12-11 10:59:13 +0100 |
commit | e3c95fbeb8f29db76c8c95ac8c4984c6126cce3e (patch) | |
tree | c6c7ed857d22b85aa63a2559dfab79cf4844520f /src/figalyser.hpp | |
parent | 6e8d21f63be63a76dfcefc9911c487ce50491721 (diff) | |
download | etisnoop-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.hpp | 6 |
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: |