diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-07 15:21:20 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-07 15:21:20 +0200 |
commit | 8da80a379f0e76defba27b6b489137b77acd0ead (patch) | |
tree | e250af12c7914cbe271ea517741057b49cb60888 /src/fig | |
parent | 02a16fd582e5aa82ddb070c02bf3d7a269685e27 (diff) | |
download | dabmux-8da80a379f0e76defba27b6b489137b77acd0ead.tar.gz dabmux-8da80a379f0e76defba27b6b489137b77acd0ead.tar.bz2 dabmux-8da80a379f0e76defba27b6b489137b77acd0ead.zip |
Fix watermark initialisation
Diffstat (limited to 'src/fig')
-rw-r--r-- | src/fig/FIG0.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fig/FIG0.cpp b/src/fig/FIG0.cpp index e8f341c..13b21f7 100644 --- a/src/fig/FIG0.cpp +++ b/src/fig/FIG0.cpp @@ -617,12 +617,20 @@ FillStatus FIG0_9::fill(uint8_t *buf, size_t max_size) //=========== FIG 0/10 =========== FIG0_10::FIG0_10(FIGRuntimeInformation *rti) : - m_rti(rti) + m_rti(rti), + m_watermarkSize(0), + m_watermarkPos(0) { uint8_t buffer[sizeof(m_watermarkData) / 2]; snprintf((char*)buffer, sizeof(buffer), "%s %s, compiled at %s, %s", - PACKAGE_NAME, PACKAGE_VERSION, __DATE__, __TIME__); + PACKAGE_NAME, +#if defined(GITVERSION) + GITVERSION, +#else + PACKAGE_VERSION, +#endif + __DATE__, __TIME__); memset(m_watermarkData, 0, sizeof(m_watermarkData)); m_watermarkData[0] = 0x55; // Sync |