1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavd/v4l2: init return value.

Fix a warning and random failures.
This commit is contained in:
Nicolas George 2013-01-16 12:00:06 +01:00
parent 1459f34251
commit 0e79fe37e5

View File

@ -221,7 +221,7 @@ static int device_init(AVFormatContext *ctx, int *width, int *height,
struct v4l2_format fmt = { .type = V4L2_BUF_TYPE_VIDEO_CAPTURE };
struct v4l2_pix_format *pix = &fmt.fmt.pix;
int res;
int res = 0;
pix->width = *width;
pix->height = *height;