mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
v4l2m2m: modify return value of g_bufsize to uint32_t
CID 1578530: (#1 of 1): INTEGER_OVERFLOW Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
This commit is contained in:
parent
286de7df01
commit
94c0f71db9
2 changed files with 5 additions and 5 deletions
|
@ -89,8 +89,8 @@ static int sim_decoder_output_try_fmt(void *priv,
|
||||||
struct v4l2_format *fmt);
|
struct v4l2_format *fmt);
|
||||||
static int sim_decoder_subscribe_event(void *priv,
|
static int sim_decoder_subscribe_event(void *priv,
|
||||||
struct v4l2_event_subscription *sub);
|
struct v4l2_event_subscription *sub);
|
||||||
static size_t sim_decoder_capture_g_bufsize(void *priv);
|
static uint32_t sim_decoder_capture_g_bufsize(void *priv);
|
||||||
static size_t sim_decoder_output_g_bufsize(void *priv);
|
static uint32_t sim_decoder_output_g_bufsize(void *priv);
|
||||||
static int sim_decoder_process(sim_decoder_t *sim_decoder,
|
static int sim_decoder_process(sim_decoder_t *sim_decoder,
|
||||||
struct v4l2_buffer *dst_buf,
|
struct v4l2_buffer *dst_buf,
|
||||||
struct v4l2_buffer *src_buf);
|
struct v4l2_buffer *src_buf);
|
||||||
|
@ -367,7 +367,7 @@ static int sim_decoder_subscribe_event(void *priv,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t sim_decoder_capture_g_bufsize(void *priv)
|
static uint32_t sim_decoder_capture_g_bufsize(void *priv)
|
||||||
{
|
{
|
||||||
sim_decoder_t *sim_decoder = priv;
|
sim_decoder_t *sim_decoder = priv;
|
||||||
|
|
||||||
|
@ -379,7 +379,7 @@ static size_t sim_decoder_capture_g_bufsize(void *priv)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t sim_decoder_output_g_bufsize(void *priv)
|
static uint32_t sim_decoder_output_g_bufsize(void *priv)
|
||||||
{
|
{
|
||||||
sim_decoder_t *sim_decoder = priv;
|
sim_decoder_t *sim_decoder = priv;
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ static int codec_reqbufs(FAR struct file *filep,
|
||||||
FAR codec_file_t *cfile = filep->f_priv;
|
FAR codec_file_t *cfile = filep->f_priv;
|
||||||
FAR codec_type_inf_t *type_inf;
|
FAR codec_type_inf_t *type_inf;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
size_t buf_size;
|
uint32_t buf_size;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
|
|
||||||
if (reqbufs == NULL)
|
if (reqbufs == NULL)
|
||||||
|
|
Loading…
Reference in a new issue