diff options
author | James Almer <jamrial@gmail.com> | 2017-03-25 04:11:34 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-25 04:11:34 +0300 |
commit | 09ce5519f3b44873ac242e9a2f89db7d459de532 (patch) | |
tree | 636102a2029f8f112cc5ed54510d1200b996574d /tests | |
parent | 36eae45510435378cfc498c6b68966492a58d03e (diff) |
fate/checkasm: fix use of uninitialized memory on hevc_add_res tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkasm/hevc_add_res.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/hevc_add_res.c b/tests/checkasm/hevc_add_res.c index ddb0584f86..185656ae8c 100644 --- a/tests/checkasm/hevc_add_res.c +++ b/tests/checkasm/hevc_add_res.c @@ -59,7 +59,7 @@ static void check_add_res(HEVCDSPContext h, int bit_depth) randomize_buffers(res0, size); randomize_buffers2(dst0, size); memcpy(res1, res0, sizeof(*res0) * size); - memcpy(dst1, dst0, size); + memcpy(dst1, dst0, sizeof(int16_t) * size); if (check_func(h.add_residual[i - 2], "add_res_%dx%d_%d", block_size, block_size, bit_depth)) { call_ref(dst0, res0, stride); |