mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
lavd/v4l2: init return value.
Fix a warning and random failures.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user