aboutsummaryrefslogtreecommitdiffstats
path: root/src/TimestampDecoder.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-13 09:14:51 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-13 09:14:51 +0100
commit26950c07cc9d1e19c7a7cae5ab5b10504c87bd65 (patch)
tree59a2a0169479d95a06368dc1ce4e0b721de39978 /src/TimestampDecoder.cpp
parentf74ac51209df3ba74c2ca0f0f54547eced14afce (diff)
downloaddabmod-26950c07cc9d1e19c7a7cae5ab5b10504c87bd65.tar.gz
dabmod-26950c07cc9d1e19c7a7cae5ab5b10504c87bd65.tar.bz2
dabmod-26950c07cc9d1e19c7a7cae5ab5b10504c87bd65.zip
Avoid frame_timestamp with pps exactly 16384000
Diffstat (limited to 'src/TimestampDecoder.cpp')
-rw-r--r--src/TimestampDecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TimestampDecoder.cpp b/src/TimestampDecoder.cpp
index 7f1fb6e..3cfa0cc 100644
--- a/src/TimestampDecoder.cpp
+++ b/src/TimestampDecoder.cpp
@@ -49,7 +49,7 @@ frame_timestamp& frame_timestamp::operator+=(const double& diff)
new_pps += 16384000;
}
- while (new_pps > 16384000) {
+ while (new_pps >= 16384000) {
this->timestamp_sec += 1;
new_pps -= 16384000;
}