diff options
author | James Zern <jzern@google.com> | 2022-07-19 16:30:59 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-07-19 16:36:15 -0700 |
commit | cc8610e18917c5ef654684a2ae7c3a5dee26640e (patch) | |
tree | 1f7a9f7a24d08f4a6e84f851384d8549514b9a0a /test | |
parent | 53dd1e8e785ea42fa88499dbfd0c2c9dcd055833 (diff) | |
download | libvpx-cc8610e18917c5ef654684a2ae7c3a5dee26640e.tar libvpx-cc8610e18917c5ef654684a2ae7c3a5dee26640e.tar.gz libvpx-cc8610e18917c5ef654684a2ae7c3a5dee26640e.tar.bz2 libvpx-cc8610e18917c5ef654684a2ae7c3a5dee26640e.zip |
encode_api_test: quiet static analysis warning
in ConfigChangeThreadCount(); initialize cfg as the static analyzer can
assume AlwaysTrue() within EXPECT_NO_FATAL_FAILURE may return false
causing InitCodec() not to be called.
test/encode_api_test.cc|321 col 3| warning: 1st function call argument
is an uninitialized value [core.CallAndMessage]
video.SetSize(cfg.g_w, cfg.g_h);
Bug: b/229626362
Change-Id: I54899ed0a207ca685416bed3a0e9c9644668e163
Diffstat (limited to 'test')
-rw-r--r-- | test/encode_api_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc index 6f61c7750..08159148b 100644 --- a/test/encode_api_test.cc +++ b/test/encode_api_test.cc @@ -336,7 +336,7 @@ TEST(EncodeAPI, ConfigChangeThreadCount) { for (const auto *iface : kCodecIfaces) { SCOPED_TRACE(vpx_codec_iface_name(iface)); for (int i = 0; i < (IsVP9(iface) ? 2 : 1); ++i) { - vpx_codec_enc_cfg_t cfg; + vpx_codec_enc_cfg_t cfg = {}; struct Encoder { ~Encoder() { EXPECT_EQ(vpx_codec_destroy(&ctx), VPX_CODEC_OK); } vpx_codec_ctx_t ctx = {}; |