aboutsummaryrefslogtreecommitdiffstats
path: root/src/TimestampDecoder.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-10 11:00:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-10 11:02:45 +0200
commit56a0a84466ca661179b534de52f728af450800a8 (patch)
tree6c97b54a296e0d7c4f8ff7dc6b7b86c273c715f1 /src/TimestampDecoder.cpp
parentc4fa1521c1c727e50859df93a29c65913368c923 (diff)
downloaddabmod-56a0a84466ca661179b534de52f728af450800a8.tar.gz
dabmod-56a0a84466ca661179b534de52f728af450800a8.tar.bz2
dabmod-56a0a84466ca661179b534de52f728af450800a8.zip
Add check for FCT validity
Diffstat (limited to 'src/TimestampDecoder.cpp')
-rw-r--r--src/TimestampDecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TimestampDecoder.cpp b/src/TimestampDecoder.cpp
index 96c84c0..6063048 100644
--- a/src/TimestampDecoder.cpp
+++ b/src/TimestampDecoder.cpp
@@ -69,7 +69,7 @@ void TimestampDecoder::calculateTimestamp(struct frame_timestamp& ts)
ts.timestamp_sec = 0;
ts.timestamp_pps_offset = 0;
ts.timestamp_refresh = false;
- ts.fct = 0;
+ ts.fct = -1;
}
else {
//fprintf(stderr, ". %zu ", queue_timestamps.size());
@@ -191,7 +191,7 @@ void TimestampDecoder::updateTimestampEti(
int framephase,
uint16_t mnsc,
double pps,
- uint32_t fct)
+ int32_t fct)
{
updateTimestampPPS(pps);
pushMNSCData(framephase, mnsc);