Commit 0e79fe37 authored by Nicolas George's avatar Nicolas George

lavd/v4l2: init return value.

Fix a warning and random failures.
parent 1459f342
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment