[FFmpeg-cvslog] checkasm: vp8.mc: initialize the full src buffer after ec32574209f

Janne Grunau git at videolan.org
Thu Nov 17 16:21:20 EET 2016


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Tue Jul 12 21:31:57 2016 +0200| [80fbb7becae530167373fe5178966b7d7604306e] | committer: Janne Grunau

checkasm: vp8.mc: initialize the full src buffer after ec32574209f

Fixes "Use of uninitialised value" valgrind warnings in checkasm.

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

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

diff --git a/tests/checkasm/vp8dsp.c b/tests/checkasm/vp8dsp.c
index 9733ff7..0260d63 100644
--- a/tests/checkasm/vp8dsp.c
+++ b/tests/checkasm/vp8dsp.c
@@ -247,7 +247,7 @@ static void check_luma_dc_wht(void)
 }
 
 #define SRC_BUF_STRIDE 32
-#define SRC_BUF_SIZE ((size + 5) * SRC_BUF_STRIDE)
+#define SRC_BUF_SIZE (((size << (size < 16)) + 5) * SRC_BUF_STRIDE)
 // The mc subpixel interpolation filter needs the 2 previous pixels in either
 // direction, the +1 is to make sure the actual load addresses always are
 // unaligned.



More information about the ffmpeg-cvslog mailing list