aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-19 05:06:10 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-19 05:06:10 +0200
commit4f983da0f35974b4ce1ea9b2598188f2d1501fda (patch)
treeb27cce8e70b8a757a4c6096dbef6482938828f54
parent44d8c1d7d3418cae8f028405b66f97420399a364 (diff)
downloadetisnoop-4f983da0f35974b4ce1ea9b2598188f2d1501fda.tar.gz
etisnoop-4f983da0f35974b4ce1ea9b2598188f2d1501fda.tar.bz2
etisnoop-4f983da0f35974b4ce1ea9b2598188f2d1501fda.zip
Initialise all DabPlusSnoop fields
-rw-r--r--src/dabplussnoop.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dabplussnoop.hpp b/src/dabplussnoop.hpp
index 6619436..b2a2dd3 100644
--- a/src/dabplussnoop.hpp
+++ b/src/dabplussnoop.hpp
@@ -105,14 +105,14 @@ class DabPlusSnoop
private:
/* Data needed for FAAD */
FaadDecoder m_faad_decoder;
- int m_index;
- bool m_write_to_wav_file;
+ int m_index = -1;
+ bool m_write_to_wav_file = false;
- bool m_ps_flag;
- bool m_aac_channel_mode;
- bool m_dac_rate;
- bool m_sbr_flag;
- int m_mpeg_surround_config;
+ bool m_ps_flag = false;
+ bool m_aac_channel_mode = false;
+ bool m_dac_rate = false;
+ bool m_sbr_flag = false;
+ int m_mpeg_surround_config = false;
/* Functions */
@@ -121,7 +121,7 @@ class DabPlusSnoop
bool extract_au(std::vector<int> au_start);
bool analyse_au(std::vector<std::vector<uint8_t> >& aus);
- unsigned m_subchannel_index;
+ unsigned m_subchannel_index = 0;
std::vector<uint8_t> m_data;
};