summaryrefslogtreecommitdiffstats
path: root/tests
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
parent36eae45510435378cfc498c6b68966492a58d03e (diff)
downloadffmpeg-streaming-09ce5519f3b44873ac242e9a2f89db7d459de532.zip
ffmpeg-streaming-09ce5519f3b44873ac242e9a2f89db7d459de532.tar.gz
fate/checkasm: fix use of uninitialized memory on hevc_add_res tests
Diffstat (limited to 'tests')
-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 ddb0584..185656a 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);
OpenPOWER on IntegriCloud