Fix coverity warning.

- False positive for overflow. Fixed the parameter declaration.
This commit is contained in:
Ari Koivula 2015-05-04 17:37:13 +03:00
parent 1c6c4963e7
commit cf2a406aba

View file

@ -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 * - All the final data for the LCU gets eventually copied to depth 0, which
* will be the final output of the recursion. * 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 encoder_control_t* ctrl = state->encoder_control;
const videoframe_t * const frame = state->tile->frame; const videoframe_t * const frame = state->tile->frame;