vp9 frame parallel test: Initialize cfg differently
Use the canonical 'vpx_codec_dec_cfg_t()' as opposed to 'vp9_zero()' which just hammered everything to 0. Change-Id: Id820efef700ad92a625797f8fd58e465b15eeca4
This commit is contained in:
parent
ee01b78ddd
commit
284cb5314e
@ -22,7 +22,6 @@
|
|||||||
#include "test/webm_video_source.h"
|
#include "test/webm_video_source.h"
|
||||||
#endif
|
#endif
|
||||||
#include "vpx_mem/vpx_mem.h"
|
#include "vpx_mem/vpx_mem.h"
|
||||||
#include "vp9/common/vp9_common.h"
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@ -47,8 +46,7 @@ string DecodeFileWithPause(const string &filename, int num_threads,
|
|||||||
int in_frames = 0;
|
int in_frames = 0;
|
||||||
int out_frames = 0;
|
int out_frames = 0;
|
||||||
|
|
||||||
vpx_codec_dec_cfg_t cfg;
|
vpx_codec_dec_cfg_t cfg = vpx_codec_dec_cfg_t();
|
||||||
vp9_zero(cfg);
|
|
||||||
cfg.threads = num_threads;
|
cfg.threads = num_threads;
|
||||||
vpx_codec_flags_t flags = 0;
|
vpx_codec_flags_t flags = 0;
|
||||||
flags |= VPX_CODEC_USE_FRAME_THREADING;
|
flags |= VPX_CODEC_USE_FRAME_THREADING;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user