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
......@@ -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_) {
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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment