summaryrefslogtreecommitdiffstats
path: root/src/TimestampDecoder.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-25 20:17:32 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-25 20:17:32 +0200
commit607a1c0af18e047f51e6f8f888449a9f2cecd167 (patch)
tree22fd00cfe85310044dbdc5633a81ba9affbe7e04 /src/TimestampDecoder.h
parentc5a570f41dc67309983e197c877ccd6bd657bf13 (diff)
downloaddabmod-607a1c0af18e047f51e6f8f888449a9f2cecd167.tar.gz
dabmod-607a1c0af18e047f51e6f8f888449a9f2cecd167.tar.bz2
dabmod-607a1c0af18e047f51e6f8f888449a9f2cecd167.zip
Correct timestamp decoder pps calculation
Diffstat (limited to 'src/TimestampDecoder.h')
-rw-r--r--src/TimestampDecoder.h2
1 files changed, 1 insertions, 1 deletions
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)
{