diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-01-16 12:00:06 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-16 12:21:58 +0100 |
commit | 0e79fe37e5c5500db2e65ce6b7ea0bbdb3f24665 (patch) | |
tree | a53108ac315a4d9b8440c9c8ba2672bc8bc84175 /libavdevice | |
parent | 1459f34251c35e5ba5af38ab9ae25ec134dbc845 (diff) | |
download | ffmpeg-0e79fe37e5c5500db2e65ce6b7ea0bbdb3f24665.tar.gz |
lavd/v4l2: init return value.
Fix a warning and random failures.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 41ae3e89a8..4ac69677cd 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -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; |