From f51852376f29bcdeed3a907b6559dc5cad26729c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 29 Jan 2016 14:45:43 +0100 Subject: Fix TIST definition Before, the TIST was wrongly incremented by 12ms instead of 24ms. Was wrong since commit c509b9af6e043220a5949a86e3d7121728b23429 no release was impacted. --- src/DabMultiplexer.cpp | 6 +++--- 1 file 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 >& 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 -- cgit v1.2.3