From f8186f5e2c6a17c9a037c6a63772abfe7059bb1c Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Fri, 31 May 2024 12:03:49 +0200 Subject: [PATCH] test/vidconv: fix undefined null memcmp --- test/vidconv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/vidconv.c b/test/vidconv.c index c34a88125..d4bf8bf01 100644 --- a/test/vidconv.c +++ b/test/vidconv.c @@ -348,6 +348,9 @@ int test_vidconv_pixel_formats(void) size_t size = test->dst_planev[p].sz; + if (!test->dst_planev[p].data) + continue; + TEST_MEMCMP(test->dst_planev[p].data, test->dst_planev[p].sz, fdst->data[p],