summaryrefslogtreecommitdiffstats
path: root/tests/checkasm/h264dsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2016-06-27 22:22:21 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-11 19:55:16 +0200
commit2e95054ebb73f95aa6620b76245313a6ccb62245 (patch)
tree65e483353428594f6ee852debbc567eec1cab930 /tests/checkasm/h264dsp.c
parenteb3137255f5841e7203c3f25b297fe99d41c77ea (diff)
downloadffmpeg-streaming-2e95054ebb73f95aa6620b76245313a6ccb62245.zip
ffmpeg-streaming-2e95054ebb73f95aa6620b76245313a6ccb62245.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> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
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 e2060db..2c2603b 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); \
} \
OpenPOWER on IntegriCloud