checkasm: v210: Fix array overwrite
authorHenrik Gramner <henrik@gramner.com>
Tue, 15 Sep 2015 21:21:28 +0000 (23:21 +0200)
committerHenrik Gramner <henrik@gramner.com>
Wed, 16 Sep 2015 11:50:09 +0000 (13:50 +0200)
tests/checkasm/v210enc.c

index 7c2b41e..ed36776 100644 (file)
@@ -43,7 +43,7 @@
             AV_WN32A(v0 + i, r);                       \
             AV_WN32A(v1 + i, r);                       \
         }                                              \
-        for (i = 0; i < BUF_SIZE * 8 / 3; i += 4) {    \
+        for (i = 0; i < width * 8 / 3; i += 4) {       \
             uint32_t r = rnd();                        \
             AV_WN32A(dst0 + i, r);                     \
             AV_WN32A(dst1 + i, r);                     \