Browse Source

lavd/v4l2: init return value.

Fix a warning and random failures.
tags/n1.2
Nicolas George 13 years ago
parent
commit
0e79fe37e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/v4l2.c

+ 1
- 1
libavdevice/v4l2.c 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;


Loading…
Cancel
Save