From: Calin Crisan <ccrisan@gmail.com>
Date: Tue, 7 Feb 2017 18:56:40 +0000 (+0200)
Subject: minor mask edit fix
X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=cbc2b92a573fd00ddd5d34fc3c317fe055deea01;p=motioneye-debian

minor mask edit fix
---

diff --git a/motioneye/utils.py b/motioneye/utils.py
index 34e5bd7..95cea8a 100644
--- a/motioneye/utils.py
+++ b/motioneye/utils.py
@@ -833,7 +833,7 @@ def build_editable_mask_file(camera_id, mask_lines, capture_width=None, capture_
         line_index_func = lambda y: y
         
     else:
-        line_index_func = lambda y: (len(mask_lines) - 1) * y / (ny - 1)
+        line_index_func = lambda y: (len(mask_lines) - 1) * y / ny
 
     rh = height / ny # rectangle height