Skip to content
Snippets Groups Projects
Commit d178b862 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Check for bad frame timestamps

parent 39dd531d
No related branches found
No related tags found
1 merge request!94Implements #134 source groups
Pipeline #12878 failed
This commit is part of merge request !94. Comments created here will be created in the context of that merge request.
...@@ -221,12 +221,13 @@ void NetSource::_recvChunk(int64_t ts, int chunk, bool delta, const vector<unsig ...@@ -221,12 +221,13 @@ void NetSource::_recvChunk(int64_t ts, int chunk, bool delta, const vector<unsig
} }
} }
++frame.chunk_count;
if (timestamp_ > 0 && frame.timestamp <= timestamp_) { if (timestamp_ > 0 && frame.timestamp <= timestamp_) {
LOG(ERROR) << "BAD DUPLICATE FRAME - " << timestamp_ - frame.timestamp; LOG(ERROR) << "BAD DUPLICATE FRAME - " << timestamp_ - frame.timestamp;
return;
} }
++frame.chunk_count;
if (frame.chunk_count > kChunkCount) LOG(FATAL) << "TOO MANY CHUNKS"; if (frame.chunk_count > kChunkCount) LOG(FATAL) << "TOO MANY CHUNKS";
if (frame.chunk_count == kChunkCount) { if (frame.chunk_count == kChunkCount) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment