diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-18 10:39:15 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-18 10:39:15 +0100 |
commit | 246dcc7aec5d4a1c7ffc014f36d4f963831869d3 (patch) | |
tree | dce0efad60fe6044ed9e47e4bc5582735b8dd446 /src | |
parent | 1318dab05f3c3b6c471e4919596744e889562034 (diff) | |
download | dabmux-246dcc7aec5d4a1c7ffc014f36d4f963831869d3.tar.gz dabmux-246dcc7aec5d4a1c7ffc014f36d4f963831869d3.tar.bz2 dabmux-246dcc7aec5d4a1c7ffc014f36d4f963831869d3.zip |
Set initial timestamp
Diffstat (limited to 'src')
-rw-r--r-- | src/DabMultiplexer.cpp | 3 |
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; } |