[FFmpeg-cvslog] checkasm: v210: Fix array overwrite

Henrik Gramner git at videolan.org
Thu Sep 17 11:28:26 CEST 2015


ffmpeg | branch: master | Henrik Gramner <henrik at gramner.com> | Wed Sep 16 14:03:01 2015 +0200| [781a25e9c419dd66063597cc5d70e8919de60561] | committer: Vittorio Giovara

checkasm: v210: Fix array overwrite

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=781a25e9c419dd66063597cc5d70e8919de60561
---

 tests/checkasm/v210enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/v210enc.c b/tests/checkasm/v210enc.c
index cdb8e76..4f5f6ba 100644
--- a/tests/checkasm/v210enc.c
+++ b/tests/checkasm/v210enc.c
@@ -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);                     \



More information about the ffmpeg-cvslog mailing list