diff options
author | Yaowu Xu <yaowu@google.com> | 2014-07-11 16:27:21 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2014-07-11 16:28:12 -0700 |
commit | 618e7ef00ebcfa7ea89f7081c7d67486acc0cdc4 (patch) | |
tree | ba4d4241b88376410e6f42c19448bcbff028eeff /vpxenc.c | |
parent | 6673d2f30968feda8a5a7999d4c391307abfd990 (diff) | |
download | libvpx-618e7ef00ebcfa7ea89f7081c7d67486acc0cdc4.tar.gz |
Silent -wextra warnings
1. vpxenc.c
2. y4minput.c
Change-Id: I1cfe1ef84a3eec11376976c09947fe6178ee039f
Diffstat (limited to 'vpxenc.c')
-rw-r--r-- | vpxenc.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -965,8 +965,8 @@ static int parse_stream_params(struct VpxEncoderConfig *global, break; /* Update/insert */ - assert(j < ARG_CTRL_CNT_MAX); - if (j < ARG_CTRL_CNT_MAX) { + assert(j < (int)ARG_CTRL_CNT_MAX); + if (j < (int)ARG_CTRL_CNT_MAX) { config->arg_ctrls[j][0] = ctrl_args_map[i]; config->arg_ctrls[j][1] = arg_parse_enum_or_int(&arg); if (j == config->arg_ctrl_cnt) @@ -1517,7 +1517,7 @@ int main(int argc, const char **argv_) { vpx_image_t raw; int frame_avail, got_data; - struct VpxInputContext input = {0}; + struct VpxInputContext input; struct VpxEncoderConfig global; struct stream_state *streams = NULL; char **argv, **argi; @@ -1525,6 +1525,7 @@ int main(int argc, const char **argv_) { int stream_cnt = 0; int res = 0; + memset(&input, 0, sizeof(input)); exec_name = argv_[0]; if (argc < 3) |