Fix coverity warning.

- False positive about coeff_y being uninitialized when width == 0.
This commit is contained in:
Ari Koivula 2015-05-05 10:23:13 +03:00
parent cf2a406aba
commit 41d9889e28

View file

@ -1649,6 +1649,8 @@ coeff_scan_order_t get_scan_order(int8_t cu_type, int intra_mode, int depth)
static void encode_transform_unit(encoder_state_t * const state,
int x_pu, int y_pu, int depth)
{
assert(depth >= 1 && depth <= MAX_PU_DEPTH);
const videoframe_t * const frame = state->tile->frame;
uint8_t width = LCU_WIDTH >> depth;
uint8_t width_c = (depth == MAX_PU_DEPTH ? width : width / 2);