mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
lavc/v4l2_context: Change the type of the ioctl cmd to uint32_t.
Fixes a warning on recent Linux: libavcodec/v4l2_context.c: In function 'ff_v4l2_context_set_status': libavcodec/v4l2_context.c:496:26: warning: comparison is always false due to limited range of data type
This commit is contained in:
parent
6ea7711532
commit
2cc51d5025
@ -484,7 +484,7 @@ static int v4l2_get_coded_format(V4L2Context* ctx, uint32_t *p)
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
int ff_v4l2_context_set_status(V4L2Context* ctx, int cmd)
|
||||
int ff_v4l2_context_set_status(V4L2Context* ctx, uint32_t cmd)
|
||||
{
|
||||
int type = ctx->type;
|
||||
int ret;
|
||||
|
@ -135,7 +135,7 @@ void ff_v4l2_context_release(V4L2Context* ctx);
|
||||
* those frames will be dropped.
|
||||
* @return 0 in case of success, a negative value representing the error otherwise.
|
||||
*/
|
||||
int ff_v4l2_context_set_status(V4L2Context* ctx, int cmd);
|
||||
int ff_v4l2_context_set_status(V4L2Context* ctx, uint32_t cmd);
|
||||
|
||||
/**
|
||||
* Dequeues a buffer from a V4L2Context to an AVPacket.
|
||||
|
Loading…
Reference in New Issue
Block a user