diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-29 14:45:43 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-29 14:45:43 +0100 |
commit | f51852376f29bcdeed3a907b6559dc5cad26729c (patch) | |
tree | 4eb6acc0b080e554531142a99928c2f1446992e5 | |
parent | 70ff8f6a3ea4dda989e07756e2ed329332298676 (diff) | |
download | dabmux-f51852376f29bcdeed3a907b6559dc5cad26729c.tar.gz dabmux-f51852376f29bcdeed3a907b6559dc5cad26729c.tar.bz2 dabmux-f51852376f29bcdeed3a907b6559dc5cad26729c.zip |
Fix TIST definition
Before, the TIST was wrongly incremented by 12ms instead
of 24ms. Was wrong since
commit c509b9af6e043220a5949a86e3d7121728b23429
no release was impacted.
-rw-r--r-- | src/DabMultiplexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index a755d99..d9ca495 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -264,8 +264,8 @@ void DabMultiplexer::prepare() } #endif - // Shift ms by 13 to Timestamp level 2, see below in Section TIST - timestamp = (mnsc_time.tv_usec / 1000) << 13; + // Shift ms by 14 to Timestamp level 2, see below in Section TIST + timestamp = (mnsc_time.tv_usec / 1000) << 14; } @@ -1805,7 +1805,7 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs time resolution */ - timestamp += 24 << 13; // Shift 24ms by 13 to Timestamp level 2 + timestamp += 24 << 14; // Shift 24ms by 14 to Timestamp level 2 if (timestamp > 0xf9FFff) { timestamp -= 0xfa0000; // Substract 16384000, corresponding to one second |