1
mirror of https://code.videolan.org/videolan/dav1d synced 2024-11-14 22:58:33 +01:00

Don't call mask_edges_chroma when !bw4 or !bh4

Fix issue #70
This commit is contained in:
Luc Trudeau 2018-10-24 15:16:52 -04:00
parent 2cce1d2615
commit 305537cae9

View File

@ -297,6 +297,9 @@ void dav1d_create_lf_mask_intra(Av1Filter *const lflvl,
(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 @@ void dav1d_create_lf_mask_inter(Av1Filter *const lflvl,
(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;