From 185e5c46f2d754c02b38f4f545716a2c1b770ce9 Mon Sep 17 00:00:00 2001 From: AndreyFilippov Date: Mon, 28 Jun 2021 11:09:52 -0600 Subject: [PATCH] decreased maxahead --- src/ext/elphel/elphel_php.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/elphel/elphel_php.c b/src/ext/elphel/elphel_php.c index 6771a9e..ac9b1e1 100644 --- a/src/ext/elphel/elphel_php.c +++ b/src/ext/elphel/elphel_php.c @@ -2428,7 +2428,7 @@ PHP_FUNCTION(elphel_capture_range) { long frame = 0; long duration=0; long this_frame = ELPHEL_GLOBALPARS(port, G_THIS_FRAME); - long maxahead = PARS_FRAMES_MASK - 3; // -2? + long maxahead = PARS_FRAMES_MASK - 4; // 3; // -2? long ahead, frame_stop; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|ll", &port, &port_mask, &frame, &duration) == FAILURE) RETURN_NULL(); -- 2.18.1