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:
parent
1459f34251
commit
0e79fe37e5
@ -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_format fmt = { .type = V4L2_BUF_TYPE_VIDEO_CAPTURE };
|
||||||
struct v4l2_pix_format *pix = &fmt.fmt.pix;
|
struct v4l2_pix_format *pix = &fmt.fmt.pix;
|
||||||
|
|
||||||
int res;
|
int res = 0;
|
||||||
|
|
||||||
pix->width = *width;
|
pix->width = *width;
|
||||||
pix->height = *height;
|
pix->height = *height;
|
||||||
|
Loading…
Reference in New Issue
Block a user