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
This commit is contained in:
@@ -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 @@ string DecodeFileWithPause(const string &filename, int num_threads,
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user