aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/File.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-13 17:32:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-13 17:32:11 +0100
commit278a5c1ee001cff8b33bc001f7719f280c4bb2da (patch)
tree93408220ac0111c99ec55529d35722578e7bb370 /src/input/File.h
parentab64249989657e9b9e14735d3a1752f0f921056b (diff)
downloaddabmux-278a5c1ee001cff8b33bc001f7719f280c4bb2da.tar.gz
dabmux-278a5c1ee001cff8b33bc001f7719f280c4bb2da.tar.bz2
dabmux-278a5c1ee001cff8b33bc001f7719f280c4bb2da.zip
Properly initialise PacketFile fields
Diffstat (limited to 'src/input/File.h')
-rw-r--r--src/input/File.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/File.h b/src/input/File.h
index 62a6707..b574c39 100644
--- a/src/input/File.h
+++ b/src/input/File.h
@@ -81,16 +81,16 @@ class PacketFile : public FileBase {
virtual int readFrame(uint8_t* buffer, size_t size);
protected:
- std::array<uint8_t,96> m_packetData;
- size_t m_packetLength;
+ std::array<uint8_t, 96> m_packetData;
+ size_t m_packetLength = 0;
/* Enhanced packet mode enables FEC for MSC packet mode
* as described in EN 300 401 Clause 5.3.5
*/
bool m_enhancedPacketEnabled = false;
std::array<std::array<uint8_t, 204>,12> m_enhancedPacketData;
- size_t m_enhancedPacketWaiting;
- size_t m_enhancedPacketLength;
+ size_t m_enhancedPacketWaiting = 0;
+ size_t m_enhancedPacketLength = 0;
};
};