]> granicus.if.org Git - libvpx/commitdiff
vp9 frame parallel test: Initialize cfg to 0
authorJohann <johannkoenig@google.com>
Tue, 13 Sep 2016 21:12:03 +0000 (14:12 -0700)
committerJohann <johannkoenig@google.com>
Tue, 13 Sep 2016 21:51:14 +0000 (14:51 -0700)
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

test/vp9_frame_parallel_test.cc

index b4db14e00a7a8143d66dc2c1896084248ca14ba0..0e07930e0fd5200d897a82faf688c9c75a5b9adc 100644 (file)
@@ -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;