aboutsummaryrefslogtreecommitdiffstats
path: root/src/TimestampDecoder.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-18 04:06:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-18 04:06:29 +0100
commit6d2083d4b700ef2edc5f4e38d4ecd9df8912a615 (patch)
tree8530ed113aaf741a81a77c59d0511f776bbd1284 /src/TimestampDecoder.h
parent40509399e2563798f260863df23ceef89d528c5a (diff)
parent4f2fcae5ad028b76ac1d41a279857df85f20c376 (diff)
downloaddabmod-6d2083d4b700ef2edc5f4e38d4ecd9df8912a615.tar.gz
dabmod-6d2083d4b700ef2edc5f4e38d4ecd9df8912a615.tar.bz2
dabmod-6d2083d4b700ef2edc5f4e38d4ecd9df8912a615.zip
Merge branch 'next' into outputRefactoring
Diffstat (limited to 'src/TimestampDecoder.h')
-rw-r--r--src/TimestampDecoder.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h
index 1ef493e..2272fe0 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;
@@ -228,4 +228,3 @@ class TimestampDecoder : public RemoteControllable
};
-