video/v4l2_cap: fix type overflow

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
shizhenghui 2024-05-31 10:03:13 +08:00 committed by Alan Carvalho de Assis
parent 3fb56c9218
commit 33b539a07d

View File

@ -2907,7 +2907,7 @@ static int capture_s_selection(FAR struct file *filep,
FAR capture_type_inf_t *type_inf;
uint32_t p_u32[IMGSENSOR_CLIP_NELEM];
imgsensor_value_t val;
int32_t id;
uint32_t id;
int ret;
if (cmng == NULL || clip == NULL)