ref: 75fe2d4409103ddf3fa496d7b9bdd28458dd128e
parent: db3258165016dd9da1bfe4e445eb397bbc978c6d
author: Johann <johannkoenig@google.com>
date: Tue Sep 13 10:12:03 EDT 2016
vp9 frame parallel test: Initialize cfg to 0 Use vp9_zero() to set every element. Cleans -Wextra/-Wmissing-field-initializers: missing initializer for member ‘vpx_codec_dec_cfg::w’ missing initializer for member ‘vpx_codec_dec_cfg::h’ Change-Id: I5b41ce7d55a912e29b1d4c3e840cea80e8510fbe
--- a/test/vp9_frame_parallel_test.cc
+++ b/test/vp9_frame_parallel_test.cc
@@ -22,6 +22,7 @@
#include "test/webm_video_source.h"
#endif
#include "vpx_mem/vpx_mem.h"
+#include "vp9/common/vp9_common.h"
namespace {
@@ -46,7 +47,8 @@
int in_frames = 0;
int out_frames = 0;
- vpx_codec_dec_cfg_t cfg = { 0 };
+ vpx_codec_dec_cfg_t cfg;
+ vp9_zero(cfg);
cfg.threads = num_threads;
vpx_codec_flags_t flags = 0;
flags |= VPX_CODEC_USE_FRAME_THREADING;