encode_api_test: quiet static analysis warning
authorJames Zern <jzern@google.com>
Tue, 19 Jul 2022 23:30:59 +0000 (16:30 -0700)
committerJames Zern <jzern@google.com>
Tue, 19 Jul 2022 23:36:15 +0000 (16:36 -0700)
commitcc8610e18917c5ef654684a2ae7c3a5dee26640e
tree1f7a9f7a24d08f4a6e84f851384d8549514b9a0a
parent53dd1e8e785ea42fa88499dbfd0c2c9dcd055833
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
test/encode_api_test.cc