| Index: source/libvpx/test/vp8_decrypt_test.cc
|
| ===================================================================
|
| --- source/libvpx/test/vp8_decrypt_test.cc (revision 223100)
|
| +++ source/libvpx/test/vp8_decrypt_test.cc (working copy)
|
| @@ -26,7 +26,8 @@
|
| 0x89, 0x9a, 0xab, 0xbc, 0xcd, 0xde, 0xef, 0xf0
|
| };
|
|
|
| -void encrypt_buffer(const uint8_t *src, uint8_t *dst, int size, int offset = 0) {
|
| +void encrypt_buffer(const uint8_t *src, uint8_t *dst,
|
| + int size, int offset = 0) {
|
| for (int i = 0; i < size; ++i) {
|
| dst[i] = src[i] ^ test_key[(offset + i) & 15];
|
| }
|
| @@ -34,10 +35,11 @@
|
|
|
| void test_decrypt_cb(void *decrypt_state, const uint8_t *input,
|
| uint8_t *output, int count) {
|
| - encrypt_buffer(input, output, count, input - (uint8_t *)decrypt_state);
|
| + encrypt_buffer(input, output, count,
|
| + input - reinterpret_cast<uint8_t *>(decrypt_state));
|
| }
|
|
|
| -} // namespace
|
| +} // namespace
|
|
|
| namespace libvpx_test {
|
|
|
|
|