v4l2: fix sign

This commit is contained in:
Wim Taymans 2024-11-07 15:40:31 +01:00
parent 4c487ea59d
commit 0056fdac83

View file

@ -585,7 +585,7 @@ static int impl_node_port_enum_params(void *object, int seq,
param = spa_pod_builder_add_object(&b.b,
SPA_TYPE_OBJECT_ParamBuffers, id,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(SPA_MIN(4, port->max_buffers),
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(SPA_MIN(4u, port->max_buffers),
1, port->max_buffers),
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(1),
SPA_PARAM_BUFFERS_size, SPA_POD_Int(port->fmt.fmt.pix.sizeimage),