fix[utils]: Remove duplicate assignments

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Change-Id: Ie3ecc53dee73b694af345796d9b5462674582ee9
This commit is contained in:
Xiaobo Liu
2025-04-14 09:24:17 +08:00
committed by Herman Chen
parent e386d8a16b
commit e168077ff5

View File

@@ -227,7 +227,6 @@ CamSource *camera_source_init(const char *device, RK_U32 bufcnt, RK_U32 width, R
buf.memory = V4L2_MEMORY_MMAP;
buf.index = i;
struct v4l2_plane planes[FMT_NUM_PLANES];
buf.memory = V4L2_MEMORY_MMAP;
if (V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) {
buf.m.planes = planes;
buf.length = FMT_NUM_PLANES;
@@ -291,7 +290,6 @@ CamSource *camera_source_init(const char *device, RK_U32 bufcnt, RK_U32 width, R
buf.type = type;
buf.memory = V4L2_MEMORY_MMAP;
buf.index = i;
buf.memory = V4L2_MEMORY_MMAP;
if (V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) {
buf.m.planes = planes;