1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Use the correct type for the V4L2 format.

Originally committed as revision 20856 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Luca Abeni 2009-12-14 10:31:29 +00:00
parent 158aa9f2db
commit 9202218e5d

View File

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