[FFmpeg-cvslog] checkasm/hevc_deblock: Initialize buffer

Andreas Rheinhardt git at videolan.org
Fri Mar 8 02:26:04 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Mar  5 11:33:12 2024 +0100| [6cf904ac3d6fdbc074c28d1359b4a6b60462d963] | committer: Andreas Rheinhardt

checkasm/hevc_deblock: Initialize buffer

Fixes the hevc_deblock checkasm test with Valgrind.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 tests/checkasm/hevc_deblock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/checkasm/hevc_deblock.c b/tests/checkasm/hevc_deblock.c
index 91e57f5cf5..04cf9d87ac 100644
--- a/tests/checkasm/hevc_deblock.c
+++ b/tests/checkasm/hevc_deblock.c
@@ -227,6 +227,7 @@ static void check_deblock_luma(HEVCDSPContext *h, int bit_depth, int c)
             *ptr1 = buf1 + BUF_OFFSET;
 
     declare_func(void, uint8_t *pix, ptrdiff_t stride, int beta, int32_t *tc, uint8_t *no_p, uint8_t *no_q);
+    memset(buf0, 0, BUF_SIZE);
 
     for (int j = 0; j < 3; j++) {
         type = types[j];



More information about the ffmpeg-cvslog mailing list