[FFmpeg-cvslog] r20856 - trunk/libavdevice/v4l2.c

lucabe subversion
Mon Dec 14 11:31:29 CET 2009


Author: lucabe
Date: Mon Dec 14 11:31:29 2009
New Revision: 20856

Log:
Use the correct type for the V4L2 format.

Modified:
   trunk/libavdevice/v4l2.c

Modified: trunk/libavdevice/v4l2.c
==============================================================================
--- trunk/libavdevice/v4l2.c	Mon Dec 14 11:30:37 2009	(r20855)
+++ trunk/libavdevice/v4l2.c	Mon Dec 14 11:31:29 2009	(r20856)
@@ -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 *
     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;



More information about the ffmpeg-cvslog mailing list