Commit 4ef06b5d authored by Frank Bossen's avatar Frank Bossen

Clears boundary_info memory along with mi memory

BUG=aomedia:1247

Change-Id: I53582471a5f75be26f843860914ab210f3230d5e
parent 85210039
......@@ -57,6 +57,9 @@ static void av1_dec_setup_mi(AV1_COMMON *cm) {
cm->mi_grid_visible = cm->mi_grid_base + cm->mi_stride + 1;
memset(cm->mi_grid_base, 0,
cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mi_grid_base));
memset(cm->boundary_info, 0,
cm->boundary_info_alloc_size * sizeof(*cm->boundary_info));
}
static int av1_dec_alloc_mi(AV1_COMMON *cm, int mi_size) {
......
......@@ -392,6 +392,9 @@ static void enc_setup_mi(AV1_COMMON *cm) {
memset(cm->mi_grid_base, 0,
cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mi_grid_base));
memset(cm->boundary_info, 0,
cm->boundary_info_alloc_size * sizeof(*cm->boundary_info));
}
static int enc_alloc_mi(AV1_COMMON *cm, int mi_size) {
......
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