diff --git a/src/cfg.c b/src/cfg.c index b4428eb2..2bbc2fc0 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -661,7 +661,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value) unsigned d; // depth unsigned r; // references unsigned t; // temporal - } gop = { 0 }; + } gop = { 0, 0, 0, 0 }; if (sscanf(value, "lp-g%ud%ur%ut%u", &gop.g, &gop.d, &gop.r, &gop.t) != 4) { fprintf(stderr, "Error in GOP syntax. Example: lp-g8d4r2t2\n"); diff --git a/src/inter.c b/src/inter.c index 1ac15059..8e5544d0 100644 --- a/src/inter.c +++ b/src/inter.c @@ -45,7 +45,7 @@ static void inter_recon_frac_luma(const encoder_state_t * const state, #define FILTER_SIZE_Y 8 //Luma filter size // Fractional luma 1/4-pel - kvz_extended_block src = {0, 0, 0}; + kvz_extended_block src = {0, 0, 0, 0}; // Fractional luma kvz_get_extended_block(xpos, @@ -90,7 +90,7 @@ static void inter_recon_14bit_frac_luma(const encoder_state_t * const state, #define FILTER_SIZE_Y 8 //Luma filter size // Fractional luma 1/4-pel - kvz_extended_block src = { 0, 0, 0 }; + kvz_extended_block src = { 0, 0, 0, 0 }; // Fractional luma kvz_get_extended_block(xpos, @@ -141,8 +141,8 @@ static void inter_recon_frac_chroma(const encoder_state_t * const state, #define FILTER_SIZE_C 4 //Chroma filter size // Fractional chroma 1/8-pel - kvz_extended_block src_u = { 0, 0, 0 }; - kvz_extended_block src_v = { 0, 0, 0 }; + kvz_extended_block src_u = { 0, 0, 0, 0 }; + kvz_extended_block src_v = { 0, 0, 0, 0 }; //Fractional chroma U kvz_get_extended_block(xpos, ypos, (mv_param[0] >> 2) >> 1, (mv_param[1] >> 2) >> 1, state->tile->lcu_offset_x * LCU_WIDTH_C, state->tile->lcu_offset_y * LCU_WIDTH_C, @@ -181,8 +181,8 @@ static void inter_recon_14bit_frac_chroma(const encoder_state_t * const state, #define FILTER_SIZE_C 4 //Chroma filter size // Fractional chroma 1/8-pel - kvz_extended_block src_u = { 0, 0, 0 }; - kvz_extended_block src_v = { 0, 0, 0 }; + kvz_extended_block src_u = { 0, 0, 0, 0 }; + kvz_extended_block src_v = { 0, 0, 0, 0 }; //Fractional chroma U kvz_get_extended_block(xpos, diff --git a/src/kvazaar.c b/src/kvazaar.c index 3bed4d2a..89132d76 100644 --- a/src/kvazaar.c +++ b/src/kvazaar.c @@ -283,7 +283,7 @@ static int kvazaar_field_encoding_adapter(kvz_encoder *enc, struct { kvz_data_chunk* data_out; uint32_t len_out; - } first = { 0 }, second = { 0 }; + } first = { 0, 0 }, second = { 0, 0 }; if (pic_in != NULL) { first_field = kvz_image_alloc(state->encoder_control->in.width, state->encoder_control->in.height); diff --git a/src/search_inter.c b/src/search_inter.c index 34c4202f..350c9db9 100644 --- a/src/search_inter.c +++ b/src/search_inter.c @@ -1017,7 +1017,7 @@ static unsigned search_frac(encoder_state_t * const state, unsigned costs[4] = { 0 }; - kvz_extended_block src = { 0, 0, 0 }; + kvz_extended_block src = { 0, 0, 0, 0 }; // Buffers for interpolated fractional pixels one // for each position excluding the integer position.