summaryrefslogtreecommitdiff
path: root/libavcodec/v4l2_context.h
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-05 01:53:49 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-05 19:25:29 +0100
commit2cc51d5025c976aa268a854df1eec86014512c8c (patch)
tree16c426b4f54df5499a157d80ad486f32811801ea /libavcodec/v4l2_context.h
parent6ea77115324c638c4a76e9902ac83f9625834bdd (diff)
downloadffmpeg-2cc51d5025c976aa268a854df1eec86014512c8c.tar.gz
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
Diffstat (limited to 'libavcodec/v4l2_context.h')
-rw-r--r--libavcodec/v4l2_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_context.h b/libavcodec/v4l2_context.h
index 503cc36dc4..632f1d0aac 100644
--- a/libavcodec/v4l2_context.h
+++ b/libavcodec/v4l2_context.h
@@ -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.