CDEF: Fix allocation of row_dering
Change-Id: Ic4c4f0ff7cf4063e2a0366af05442858b4b7fcca
This commit is contained in:
Родитель
6341f5c5c4
Коммит
e84eaf03d4
|
@ -169,7 +169,7 @@ void av1_cdef_frame(YV12_BUFFER_CONFIG *frame, AV1_COMMON *cm,
|
|||
nvsb = (cm->mi_rows + MAX_MIB_SIZE - 1) / MAX_MIB_SIZE;
|
||||
nhsb = (cm->mi_cols + MAX_MIB_SIZE - 1) / MAX_MIB_SIZE;
|
||||
av1_setup_dst_planes(xd->plane, frame, 0, 0);
|
||||
row_dering = aom_malloc(sizeof(*row_dering) * nhsb * 2);
|
||||
row_dering = aom_malloc(sizeof(*row_dering) * (nhsb + 2) * 2);
|
||||
memset(row_dering, 1, sizeof(*row_dering) * (nhsb + 2) * 2);
|
||||
prev_row_dering = row_dering + 1;
|
||||
curr_row_dering = prev_row_dering + nhsb + 2;
|
||||
|
|
Загрузка…
Ссылка в новой задаче