History

tests: use vpx_codec_dec_cfg_t() to initialize vars

0-initializes [1] and removes a warning for missing initializer fields [1] http://en.cppreference.com/w/cpp/language/value_initialization

James Zern committed 12 years ago

Commit b4b191a1 parent 812506b11 files · +11 −11Browse files

Showing the changes to test/decode_test_driver.cc (1 of 11 files). Show all

Unified · Split

test/decode_test_driver.cc+1−1
@@ -106,7 +106,7 @@ void DecoderTest::RunLoop(CompressedVideoSource *video, · 105 unmodified lines
106106 }
107107
108108 void DecoderTest::RunLoop(CompressedVideoSource *video) {
109− vpx_codec_dec_cfg_t dec_cfg = {0};
109+ vpx_codec_dec_cfg_t dec_cfg = vpx_codec_dec_cfg_t();
110110 RunLoop(video, dec_cfg);
111111 }
112112

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t