From 4f983da0f35974b4ce1ea9b2598188f2d1501fda Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 19 Oct 2017 05:06:10 +0200 Subject: Initialise all DabPlusSnoop fields --- src/dabplussnoop.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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 au_start); bool analyse_au(std::vector >& aus); - unsigned m_subchannel_index; + unsigned m_subchannel_index = 0; std::vector m_data; }; -- cgit v1.2.3