diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-05-25 20:17:32 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-05-25 20:17:32 +0200 |
commit | 607a1c0af18e047f51e6f8f888449a9f2cecd167 (patch) | |
tree | 22fd00cfe85310044dbdc5633a81ba9affbe7e04 | |
parent | c5a570f41dc67309983e197c877ccd6bd657bf13 (diff) | |
download | dabmod-607a1c0af18e047f51e6f8f888449a9f2cecd167.tar.gz dabmod-607a1c0af18e047f51e6f8f888449a9f2cecd167.tar.bz2 dabmod-607a1c0af18e047f51e6f8f888449a9f2cecd167.zip |
Correct timestamp decoder pps calculation
-rw-r--r-- | src/TimestampDecoder.h | 2 |
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) { |