Fix missing field initializers.

This commit is contained in:
Arttu Ylä-Outinen 2016-06-07 12:03:21 +09:00
parent 06b82bf888
commit 22cc97ffb1
4 changed files with 9 additions and 9 deletions

View file

@ -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");

View file

@ -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,

View file

@ -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);

View file

@ -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.