Skip to content
Snippets Groups Projects
Commit 3992e4f7 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

bug fix described in the corresponding issue

parent 2ff0efa1
No related branches found
No related tags found
1 merge request!288Resolve "ProcessorMotion KFcallback with recent TimeStamp"
Pipeline #3728 passed
...@@ -96,7 +96,6 @@ void ProcessorMotion::process(CaptureBasePtr _incoming_ptr) ...@@ -96,7 +96,6 @@ void ProcessorMotion::process(CaptureBasePtr _incoming_ptr)
switch(processing_step_) switch(processing_step_)
{ {
case RUNNING_WITHOUT_PACK : case RUNNING_WITHOUT_PACK :
case RUNNING_WITH_PACK_ON_ORIGIN : case RUNNING_WITH_PACK_ON_ORIGIN :
break; break;
...@@ -658,6 +657,10 @@ PackKeyFramePtr ProcessorMotion::computeProcessingStep() ...@@ -658,6 +657,10 @@ PackKeyFramePtr ProcessorMotion::computeProcessingStep()
PackKeyFramePtr pack = buffer_pack_kf_.selectFirstPackBefore(last_ptr_, params_motion_->time_tolerance); PackKeyFramePtr pack = buffer_pack_kf_.selectFirstPackBefore(last_ptr_, params_motion_->time_tolerance);
// ignore "future" KF to avoid MotionBuffer::split() error
if (pack && pack->key_frame->getTimeStamp() > last_ptr_->getBuffer().get().back().ts_)
pack = nullptr;
if (pack) if (pack)
{ {
if (buffer_pack_kf_.checkTimeTolerance(pack->key_frame->getTimeStamp(), pack->time_tolerance, origin_ptr_->getTimeStamp(), params_motion_->time_tolerance)) if (buffer_pack_kf_.checkTimeTolerance(pack->key_frame->getTimeStamp(), pack->time_tolerance, origin_ptr_->getTimeStamp(), params_motion_->time_tolerance))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment