aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-10 09:27:26 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-10 09:30:33 +0100
commita3a56518db976400e87d102a6c9c73ee1f375f07 (patch)
treea0b01728366b641af7d2fa12bb84d3a0fd23d397 /src
parentd4bb768d0b84f2369bcc22b7846a917717adb353 (diff)
downloaddabmod-a3a56518db976400e87d102a6c9c73ee1f375f07.tar.gz
dabmod-a3a56518db976400e87d102a6c9c73ee1f375f07.tar.bz2
dabmod-a3a56518db976400e87d102a6c9c73ee1f375f07.zip
Avoid invalid warning about timestamp irregularity
Diffstat (limited to 'src')
-rw-r--r--src/TimestampDecoder.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h
index e0dee2a..943b241 100644
--- a/src/TimestampDecoder.h
+++ b/src/TimestampDecoder.h
@@ -69,7 +69,7 @@ struct frame_timestamp
this->timestamp_sec += lrintf(offset_secs);
this->timestamp_pps += lrintf(offset_pps * 16384000.0);
- while (this->timestamp_pps > 16384000)
+ while (this->timestamp_pps >= 16384000)
{
this->timestamp_pps -= 16384000;
this->timestamp_sec += 1;
@@ -216,4 +216,3 @@ class TimestampDecoder : public RemoteControllable
};
-