]> git.sesse.net Git - ffmpeg/commitdiff
lavc/v4l2_context: Change the type of the ioctl cmd to uint32_t.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 5 Nov 2017 00:53:49 +0000 (01:53 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 5 Nov 2017 18:25:29 +0000 (19:25 +0100)
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

libavcodec/v4l2_context.c
libavcodec/v4l2_context.h

index 9f3b56ddabf7dc56d56b6f8eff66f278f5c2c42b..4c169928fab9efaa717c9fab8cca0513abdcff2c 100644 (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;
index 503cc36dc4a2b6f48582181b3cb73d609a2421ce..632f1d0aac0191dd50824835b65df032fbcd368f 100644 (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.