Commit b37226e4 authored by Jean-Marc Valin's avatar Jean-Marc Valin Committed by Steinar Midtskogen

Don't run cdef when cm->mi_grid_visible[]==NULL

Change-Id: Id2bcdad731c27a71cca29205d37c781a3f99bb3d
parent afeb9219
......@@ -201,6 +201,11 @@ void av1_cdef_frame(YV12_BUFFER_CONFIG *frame, AV1_COMMON *cm,
MAX_MIB_SIZE * sbc]
->mbmi.boundary_info;
#endif
if (cm->mi_grid_visible[MAX_MIB_SIZE * sbr * cm->mi_stride +
MAX_MIB_SIZE * sbc] == NULL) {
dering_left = 0;
continue;
}
if (!dering_left) cstart = -OD_FILT_HBORDER;
nhb = AOMMIN(MAX_MIB_SIZE, cm->mi_cols - MAX_MIB_SIZE * sbc);
nvb = AOMMIN(MAX_MIB_SIZE, cm->mi_rows - MAX_MIB_SIZE * sbr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment