aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/h264dsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2016-06-27 22:22:21 +0300
committerMartin Storsjö <martin@martin.st>2016-06-28 14:24:01 +0300
commite57de6faa1e796099091c9af947d4755edacccaf (patch)
tree24599a2f3cdc1d77594371cda8f4bd8930faeed4 /tests/checkasm/h264dsp.c
parent82b7525173f20702a8cbc26ebedbf4b69b8fecec (diff)
downloadffmpeg-e57de6faa1e796099091c9af947d4755edacccaf.tar.gz
checkasm: h264dsp: Initialize the padding area
This fixes valgrind warnings about conditional jumps based on uninitialized data (even though the uninitialized data only ever was compared with a direct copy of the same uninitialized data). Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests/checkasm/h264dsp.c')
-rw-r--r--tests/checkasm/h264dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/h264dsp.c b/tests/checkasm/h264dsp.c
index 082c3d48a6..c3065d2908 100644
--- a/tests/checkasm/h264dsp.c
+++ b/tests/checkasm/h264dsp.c
@@ -36,7 +36,7 @@ static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff };
do { \
uint32_t mask = pixel_mask[bit_depth - 8]; \
for (y = 0; y < sz; y++) { \
- for (x = 0; x < sz * SIZEOF_PIXEL; x += 4) { \
+ for (x = 0; x < PIXEL_STRIDE; x += 4) { \
AV_WN32A(src + y * PIXEL_STRIDE + x, rnd() & mask); \
AV_WN32A(dst + y * PIXEL_STRIDE + x, rnd() & mask); \
} \