summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-18 10:39:15 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-18 10:39:15 +0100
commit246dcc7aec5d4a1c7ffc014f36d4f963831869d3 (patch)
treedce0efad60fe6044ed9e47e4bc5582735b8dd446 /src/DabMultiplexer.cpp
parent1318dab05f3c3b6c471e4919596744e889562034 (diff)
downloaddabmux-246dcc7aec5d4a1c7ffc014f36d4f963831869d3.tar.gz
dabmux-246dcc7aec5d4a1c7ffc014f36d4f963831869d3.tar.bz2
dabmux-246dcc7aec5d4a1c7ffc014f36d4f963831869d3.zip
Set initial timestamp
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r--src/DabMultiplexer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp
index 399084a..2578cfd 100644
--- a/src/DabMultiplexer.cpp
+++ b/src/DabMultiplexer.cpp
@@ -238,6 +238,9 @@ void DabMultiplexer::prepare()
* synchronisation is preserved.
*/
gettimeofday(&mnsc_time, NULL);
+
+ // Shift ms by 13 to Timestamp level 2, see below in Section TIST
+ timestamp = (mnsc_time.tv_usec / 1000) << 13;
}