From cf2a406aba26811fc5fd065f7a1bfbf7606f37f3 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Mon, 4 May 2015 17:37:13 +0300 Subject: [PATCH] Fix coverity warning. - False positive for overflow. Fixed the parameter declaration. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;