0-initializes [1] and removes a warning for missing initializer fields [1] http://en.cppreference.com/w/cpp/language/value_initialization
Showing the changes to test/external_frame_buffer_test.cc (1 of 11 files). Show all
Unified · Split
| @@ -285,7 +285,7 @@ class ExternalFrameBufferTest : public ::testing::Test { · 284 unmodified lines | |||
| 285 | video_->Init(); | 285 | video_->Init(); |
| 286 | video_->Begin(); | 286 | video_->Begin(); |
| 287 | 287 | ||
| 288 | vpx_codec_dec_cfg_t cfg = {0}; | 288 | vpx_codec_dec_cfg_t cfg = vpx_codec_dec_cfg_t(); |
| 289 | decoder_ = new libvpx_test::VP9Decoder(cfg, 0); | 289 | decoder_ = new libvpx_test::VP9Decoder(cfg, 0); |
| 290 | ASSERT_TRUE(decoder_ != NULL); | 290 | ASSERT_TRUE(decoder_ != NULL); |
| 291 | } | 291 | } |