diff options
author | Johann <johannkoenig@google.com> | 2016-06-13 12:08:47 -0700 |
---|---|---|
committer | Johann Koenig <johannkoenig@google.com> | 2016-06-16 22:07:17 +0000 |
commit | 6f9982e3c27598cb7958fdb0a43217ab10cfb5b9 (patch) | |
tree | b73045345ce020a931c2f0e58a732022398dd027 /vp8/vp8_cx_iface.c | |
parent | 799ab7c064ec4fec8f0ea1a480f814fc4d4e97bf (diff) | |
download | libvpx-6f9982e3c27598cb7958fdb0a43217ab10cfb5b9.tar libvpx-6f9982e3c27598cb7958fdb0a43217ab10cfb5b9.tar.gz libvpx-6f9982e3c27598cb7958fdb0a43217ab10cfb5b9.tar.bz2 libvpx-6f9982e3c27598cb7958fdb0a43217ab10cfb5b9.zip |
vp8_[cd]x_iface.c: Initialize structures to 0
Use vp8_zero() or specify every element.
Cleans warning in Android build:
missing field 'deblocking_level' initializer
vp8_ppflags_t flags = {0};
^
missing field 'sz' initializer
{0}, /* rc_twopass_stats_in */
^
missing field 'sz' initializer
{0}, /* rc_firstpass_mb_stats_in */
^
missing field 'layer_target_bitrate' initializer
}},
^
missing field 'deblocking_level' initializer
vp8_ppflags_t flags = {0};
^
missing field 'mr_get_mem_loc' initializer
}
^
Change-Id: Iaedde9a77faac7a40316aee67d60d02ba7313500
Diffstat (limited to 'vp8/vp8_cx_iface.c')
-rw-r--r-- | vp8/vp8_cx_iface.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c index 54d45479e..75af40a00 100644 --- a/vp8/vp8_cx_iface.c +++ b/vp8/vp8_cx_iface.c @@ -22,6 +22,7 @@ #include "vpx/vp8cx.h" #include "vp8/encoder/firstpass.h" #include "vp8/common/onyx.h" +#include "vp8/common/common.h" #include <stdlib.h> #include <string.h> @@ -1116,7 +1117,8 @@ static vpx_image_t *vp8e_get_preview(vpx_codec_alg_priv_t *ctx) { YV12_BUFFER_CONFIG sd; - vp8_ppflags_t flags = {0}; + vp8_ppflags_t flags; + vp8_zero(flags); if (ctx->preview_ppcfg.post_proc_flag) { @@ -1305,8 +1307,8 @@ static vpx_codec_enc_cfg_map_t vp8e_usage_cfg_map[] = 30, /* rc_resize_up_thresold */ VPX_VBR, /* rc_end_usage */ - {0}, /* rc_twopass_stats_in */ - {0}, /* rc_firstpass_mb_stats_in */ + {NULL, 0}, /* rc_twopass_stats_in */ + {NULL, 0}, /* rc_firstpass_mb_stats_in */ 256, /* rc_target_bandwidth */ 4, /* rc_min_quantizer */ 63, /* rc_max_quantizer */ @@ -1334,6 +1336,8 @@ static vpx_codec_enc_cfg_map_t vp8e_usage_cfg_map[] = {0}, /* ts_rate_decimator */ 0, /* ts_periodicity */ {0}, /* ts_layer_id */ + {0}, /* layer_target_bitrate */ + 0 /* temporal_layering_mode */ }}, }; |