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:
Carl Eugen Hoyos 2017-11-05 01:53:49 +01:00
parent 6ea7711532
commit 2cc51d5025
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.