summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2022-07-19 16:30:59 -0700
committerJames Zern <jzern@google.com>2022-07-19 16:36:15 -0700
commitcc8610e18917c5ef654684a2ae7c3a5dee26640e (patch)
tree1f7a9f7a24d08f4a6e84f851384d8549514b9a0a /test
parent53dd1e8e785ea42fa88499dbfd0c2c9dcd055833 (diff)
downloadlibvpx-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.cc2
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 = {};