From 128827d94707df2781ae436d004cdd1d216aa8e4 Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Fri, 1 Aug 2014 07:05:15 -0700 Subject: cast enums to int to avoid gcc warning in pred_common Change-Id: Ie3e478ef4fa565225d9e19a14d2f40aad966c2b6 --- vp9/common/vp9_pred_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp9/common/vp9_pred_common.c b/vp9/common/vp9_pred_common.c index bc9d6ef5e..cdf5fb916 100644 --- a/vp9/common/vp9_pred_common.c +++ b/vp9/common/vp9_pred_common.c @@ -353,9 +353,9 @@ int vp9_get_tx_size_context(const MACROBLOCKD *xd) { const MB_MODE_INFO *const left_mbmi = get_mbmi(get_left_mi(xd)); const int has_above = above_mbmi != NULL; const int has_left = left_mbmi != NULL; - int above_ctx = (has_above && !above_mbmi->skip) ? above_mbmi->tx_size + int above_ctx = (has_above && !above_mbmi->skip) ? (int)above_mbmi->tx_size : max_tx_size; - int left_ctx = (has_left && !left_mbmi->skip) ? left_mbmi->tx_size + int left_ctx = (has_left && !left_mbmi->skip) ? (int)left_mbmi->tx_size : max_tx_size; if (!has_left) left_ctx = above_ctx; -- cgit v1.2.3 From 5c41891864ece0eb0422c3f55520bf5d79befb78 Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Fri, 1 Aug 2014 07:11:43 -0700 Subject: vpxdec warning errors addressed Change-Id: I4e2aeaef3e6efd5be3cb963d2eba5e08dc89b803 --- vpxdec.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/vpxdec.c b/vpxdec.c index 58cd03ec8..1bab41e2f 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -425,6 +425,7 @@ void generate_filename(const char *pattern, char *out, size_t q_len, break; default: die("Unrecognized pattern %%%c\n", p[1]); + break; } pat_len = strlen(q); @@ -511,7 +512,7 @@ int main_loop(int argc, const char **argv_) { int use_y4m = 1; int opt_yv12 = 0; int opt_i420 = 0; - vpx_codec_dec_cfg_t cfg = {0}; + vpx_codec_dec_cfg_t cfg = {0, 0, 0}; #if CONFIG_VP8_DECODER vp8_postproc_cfg_t vp8_pp_cfg = {0}; int vp8_dbg_color_ref_frame = 0; @@ -525,7 +526,7 @@ int main_loop(int argc, const char **argv_) { vpx_image_t *scaled_img = NULL; int frame_avail, got_data; int num_external_frame_buffers = 0; - struct ExternalFrameBufferList ext_fb_list = {0}; + struct ExternalFrameBufferList ext_fb_list = {0, NULL}; const char *outfile_pattern = NULL; char outfile_name[PATH_MAX] = {0}; @@ -534,10 +535,10 @@ int main_loop(int argc, const char **argv_) { MD5Context md5_ctx; unsigned char md5_digest[16]; - struct VpxDecInputContext input = {0}; - struct VpxInputContext vpx_input_ctx = {0}; + struct VpxDecInputContext input = {NULL, NULL}; + struct VpxInputContext vpx_input_ctx; #if CONFIG_WEBM_IO - struct WebmInputContext webm_ctx = {0}; + struct WebmInputContext webm_ctx; input.webm_ctx = &webm_ctx; #endif input.vpx_input_ctx = &vpx_input_ctx; -- cgit v1.2.3