diff mbox series

[FFmpeg-devel] checkasm/lls: add missing random values to the test buffers

Message ID 20240612115345.2247-1-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel] checkasm/lls: add missing random values to the test buffers | 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

James Almer June 12, 2024, 11:53 a.m. UTC
Fixes valgrind warnings after 18adaf9fe558587cb1b707c647af83015b69da48.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 tests/checkasm/lls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Almer June 13, 2024, 5:39 p.m. UTC | #1
On 6/12/2024 8:53 AM, James Almer wrote:
> Fixes valgrind warnings after 18adaf9fe558587cb1b707c647af83015b69da48.
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   tests/checkasm/lls.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/checkasm/lls.c b/tests/checkasm/lls.c
> index b1db21cd56..d2dbc53f41 100644
> --- a/tests/checkasm/lls.c
> +++ b/tests/checkasm/lls.c
> @@ -24,7 +24,7 @@
>   do {                                           \
>       double bmg[2], stddev = 10.0;              \
>                                                  \
> -    for (size_t i = 0; i < MAX_VARS; i += 2) { \
> +    for (size_t i = 0; i < MAX_VARS_ALIGN; i += 2) { \
>           av_bmg_get(&checkasm_lfg, bmg);        \
>           buf[i]     = bmg[0] * stddev;          \
>           buf[i + 1] = bmg[1] * stddev;          \

Applied.
diff mbox series

Patch

diff --git a/tests/checkasm/lls.c b/tests/checkasm/lls.c
index b1db21cd56..d2dbc53f41 100644
--- a/tests/checkasm/lls.c
+++ b/tests/checkasm/lls.c
@@ -24,7 +24,7 @@ 
 do {                                           \
     double bmg[2], stddev = 10.0;              \
                                                \
-    for (size_t i = 0; i < MAX_VARS; i += 2) { \
+    for (size_t i = 0; i < MAX_VARS_ALIGN; i += 2) { \
         av_bmg_get(&checkasm_lfg, bmg);        \
         buf[i]     = bmg[0] * stddev;          \
         buf[i + 1] = bmg[1] * stddev;          \