X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=test%2Fvp9_decrypt_test.cc;h=1874d2311733429e30439569c80c0ad1893ed269;hb=348cff040ae6893f46395f003fab336c858dec4d;hp=88a3c14f592772d3a09ef8a190c69ab6b94b38a3;hpb=18c08607e0a216962fd3df4f7926ce288ee81b9b;p=libvpx diff --git a/test/vp9_decrypt_test.cc b/test/vp9_decrypt_test.cc index 88a3c14f5..1874d2311 100644 --- a/test/vp9_decrypt_test.cc +++ b/test/vp9_decrypt_test.cc @@ -21,10 +21,8 @@ namespace { // with whatever internal state the decryptor uses. For testing we'll just // xor with a constant key, and decrypt_state will point to the start of // the original buffer. -const uint8_t test_key[16] = { - 0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, - 0x89, 0x9a, 0xab, 0xbc, 0xcd, 0xde, 0xef, 0xf0 -}; +const uint8_t test_key[16] = { 0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, + 0x89, 0x9a, 0xab, 0xbc, 0xcd, 0xde, 0xef, 0xf0 }; void encrypt_buffer(const uint8_t *src, uint8_t *dst, size_t size, ptrdiff_t offset) { @@ -33,8 +31,8 @@ void encrypt_buffer(const uint8_t *src, uint8_t *dst, size_t size, } } -void test_decrypt_cb(void *decrypt_state, const uint8_t *input, - uint8_t *output, int count) { +void test_decrypt_cb(void *decrypt_state, const uint8_t *input, uint8_t *output, + int count) { encrypt_buffer(input, output, count, input - reinterpret_cast(decrypt_state)); } @@ -47,7 +45,7 @@ TEST(TestDecrypt, DecryptWorksVp9) { libvpx_test::IVFVideoSource video("vp90-2-05-resize.ivf"); video.Init(); - vpx_codec_dec_cfg_t dec_cfg = {0}; + vpx_codec_dec_cfg_t dec_cfg = vpx_codec_dec_cfg_t(); VP9Decoder decoder(dec_cfg, 0); video.Begin();