aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-03-24 22:11:34 -0300
committerJames Almer <jamrial@gmail.com>2017-03-24 22:11:34 -0300
commit09ce5519f3b44873ac242e9a2f89db7d459de532 (patch)
tree636102a2029f8f112cc5ed54510d1200b996574d /tests/checkasm
parent36eae45510435378cfc498c6b68966492a58d03e (diff)
downloadffmpeg-09ce5519f3b44873ac242e9a2f89db7d459de532.tar.gz
fate/checkasm: fix use of uninitialized memory on hevc_add_res tests
Diffstat (limited to 'tests/checkasm')
-rw-r--r--tests/checkasm/hevc_add_res.c2
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);