aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pix_opencv_motempl.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/pix_opencv_motempl.cc b/pix_opencv_motempl.cc
index 545b437..208702a 100644
--- a/pix_opencv_motempl.cc
+++ b/pix_opencv_motempl.cc
@@ -693,8 +693,11 @@ void pix_opencv_motempl :: floatmin_size(float min_size)
}
void pix_opencv_motempl :: floatframe_buffer_num(float frame_buffer_num)
{
- if (frame_buffer_num>=1) this->frame_buffer_num = (int)frame_buffer_num;
- this->buf = NULL;
+ if (frame_buffer_num>=3)
+ {
+ this->frame_buffer_num = (int)frame_buffer_num;
+ this->buf = NULL;
+ }
}
void pix_opencv_motempl :: floatmax_time_delta(float max_time_delta)
{