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
1 changed files with 1 additions and 1 deletions

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;