mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
3c85200989
int pix_per_thr = l_counter / LOCAL_TOTAL + ((lid < mod) ? 1 : 0); The pix_per_thr * LOCAL_TOTAL may be larger than l_counter. Thus the index of l_stack may be negative which may cause serious problems. Let's skip the loop when we get negative index and we need to add back the lcounter to keep its balance and avoid potential negative counter. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> |
||
---|---|---|
.. | ||
doc | ||
include/opencv2 | ||
misc/java/test | ||
perf | ||
src | ||
test | ||
CMakeLists.txt |