Skip to content

Commit

Permalink
test/vidconv: fix undefined null memcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed May 31, 2024
1 parent e8fb4c1 commit f8186f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/vidconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit f8186f5

Please sign in to comment.