diff mbox series

[FFmpeg-devel] checkasm/hevc_deblock: Initialize buffer

Message ID AS8P250MB0744FC72A95F126F37DBF1958F222@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 6cf904ac3d6fdbc074c28d1359b4a6b60462d963
Headers show
Series [FFmpeg-devel] checkasm/hevc_deblock: Initialize buffer | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 5, 2024, 10:34 a.m. UTC
Fixes the hevc_deblock checkasm test with Valgrind.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/checkasm/hevc_deblock.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andreas Rheinhardt March 7, 2024, 8:11 a.m. UTC | #1
Andreas Rheinhardt:
> Fixes the hevc_deblock checkasm test with Valgrind.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  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];

Will apply this patch tomorrow unless there are objections.

- Andreas
diff mbox series

Patch

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];