From 607a1c0af18e047f51e6f8f888449a9f2cecd167 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 25 May 2016 20:17:32 +0200 Subject: Correct timestamp decoder pps calculation --- src/TimestampDecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h index 09b4050..c538ea0 100644 --- a/src/TimestampDecoder.h +++ b/src/TimestampDecoder.h @@ -66,7 +66,7 @@ struct frame_timestamp offset_pps = modf(diff, &offset_secs); this->timestamp_sec += lrintf(offset_secs); - this->timestamp_pps += lrintf(offset_pps / 16384000.0); + this->timestamp_pps += lrintf(offset_pps * 16384000.0); while (this->timestamp_pps > 16384000) { -- cgit v1.2.3