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 | |
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
-rw-r--r-- | src/etianalyse.cpp | 2 | ||||
-rw-r--r-- | src/figalyser.hpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/etianalyse.cpp b/src/etianalyse.cpp index c457085..f416c77 100644 --- a/src/etianalyse.cpp +++ b/src/etianalyse.cpp @@ -445,7 +445,7 @@ void ETI_Analyser::eti_analyse() } if (config.analyse_fic_carousel) { - figs.analyse(); + figs.analyse(get_mode_identity()); } } 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: |