From a3a56518db976400e87d102a6c9c73ee1f375f07 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 10 Nov 2017 09:27:26 +0100 Subject: Avoid invalid warning about timestamp irregularity --- src/TimestampDecoder.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 }; - -- cgit v1.2.3