From 972e03b4a09b790d9ed9c8102cc897a75c9bb751 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Sun, 2 Apr 2023 12:08:06 +0200 Subject: Change frame planes counter type to uint32_t --- frame.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frame.c') diff --git a/frame.c b/frame.c index 2e008ed..dbb886f 100644 --- a/frame.c +++ b/frame.c @@ -26,7 +26,7 @@ #include "util.h" struct Frame* FrameCreate(uint32_t width, uint32_t height, uint32_t fourcc, - size_t nplanes, const struct FramePlane* planes) { + uint32_t nplanes, const struct FramePlane* planes) { struct AUTO(Frame)* frame = malloc(sizeof(struct Frame)); if (!frame) { LOG("Failed to allocate frame (%s)", strerror(errno)); @@ -37,10 +37,10 @@ struct Frame* FrameCreate(uint32_t width, uint32_t height, uint32_t fourcc, .height = height, .fourcc = fourcc, .nplanes = nplanes, - .planes[0] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, - .planes[1] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, - .planes[2] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, - .planes[3] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, + .planes[0] = {.dmabuf_fd = -1}, + .planes[1] = {.dmabuf_fd = -1}, + .planes[2] = {.dmabuf_fd = -1}, + .planes[3] = {.dmabuf_fd = -1}, }; for (size_t i = 0; i < nplanes; i++) { -- cgit v1.2.3