ref: 305537cae94ff6b998c908412eaf8a16288866d4
parent: 2cce1d26159a79ff9a266c117c6c5ecee8f18df3
author: Luc Trudeau <ltrudeau@twoorioles.com>
date: Wed Oct 24 11:16:52 EDT 2018
Don't call mask_edges_chroma when !bw4 or !bh4 Fix issue #70
--- a/src/lf_mask.c
+++ b/src/lf_mask.c
@@ -297,6 +297,9 @@
(b_dim[0] + ss_hor) >> ss_hor);
const int cbh4 = imin(((ih + ss_ver) >> ss_ver) - (by >> ss_ver),
(b_dim[1] + ss_ver) >> ss_ver);
+
+ if (!cbw4 || !cbh4) return;
+
const int cbx4 = bx4 >> ss_hor;
const int cby4 = by4 >> ss_ver;
@@ -359,6 +362,9 @@
(b_dim[0] + ss_hor) >> ss_hor);
const int cbh4 = imin(((ih + ss_ver) >> ss_ver) - (by >> ss_ver),
(b_dim[1] + ss_ver) >> ss_ver);
+
+ if (!cbw4 || !cbh4) return;
+
const int cbx4 = bx4 >> ss_hor;
const int cby4 = by4 >> ss_ver;