diff options
author | Luca Abeni <lucabe72@email.it> | 2009-12-14 10:31:29 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-12-14 10:31:29 +0000 |
commit | 9202218e5ddfa29bff95a787aaf07148289ce782 (patch) | |
tree | 4610d1185c641c530b9eb970d2c0447b81d0c507 | |
parent | 158aa9f2db642f6f3989386989530b3de46ef31b (diff) | |
download | ffmpeg-9202218e5ddfa29bff95a787aaf07148289ce782.tar.gz |
Use the correct type for the V4L2 format.
Originally committed as revision 20856 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavdevice/v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index a866f9e060..5091cd4725 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -72,7 +72,7 @@ struct buff_data { struct fmt_map { enum PixelFormat ff_fmt; - int32_t v4l2_fmt; + uint32_t v4l2_fmt; }; static struct fmt_map fmt_conversion_table[] = { @@ -171,7 +171,7 @@ static int device_open(AVFormatContext *ctx, uint32_t *capabilities) return fd; } -static int device_init(AVFormatContext *ctx, int *width, int *height, int pix_fmt) +static int device_init(AVFormatContext *ctx, int *width, int *height, uint32_t pix_fmt) { struct video_data *s = ctx->priv_data; int fd = s->fd; |