diff --git a/src/search.c b/src/search.c index 90ff6bf3..6949a539 100644 --- a/src/search.c +++ b/src/search.c @@ -2377,7 +2377,7 @@ static uint8_t get_ctx_cu_split_model(const lcu_t *lcu, int x, int y, int depth) * - All the final data for the LCU gets eventually copied to depth 0, which * will be the final output of the recursion. */ -static double search_cu(encoder_state_t * const state, int x, int y, int depth, lcu_t work_tree[MAX_PU_DEPTH]) +static double search_cu(encoder_state_t * const state, int x, int y, int depth, lcu_t work_tree[MAX_PU_DEPTH + 1]) { const encoder_control_t* ctrl = state->encoder_control; const videoframe_t * const frame = state->tile->frame;