From 446c53fd00acd4aaedabc112f6083855e9baf517 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Fri, 16 Dec 2022 14:13:45 +0200 Subject: [PATCH] [mtt] Fix cclm for non 64 divisible heights --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 7efdb004..c0dc0700 100644 --- a/src/search.c +++ b/src/search.c @@ -430,7 +430,7 @@ static void downsample_cclm_rec(encoder_state_t *state, int x, int y, int width, const int stride = state->tile->frame->rec->stride; const int stride2 = (((state->tile->frame->width + 7) & ~7) + FRAME_PADDING_LUMA); - for (int y_ = 0; y_ < height && y_ * 2 + y < state->encoder_control->cfg.height; y_++) { + for (int y_ = 0; y_ < height && y_ * 2 + y < state->tile->frame->height; y_++) { for (int x_ = 0; x_ < width; x_++) { int s = 4; s += y_rec[2 * x_] * 2;