|
@@ -906,7 +906,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
|
|
|
f->fmt.pix.width = width;
|
|
|
f->fmt.pix.height = height;
|
|
|
f->fmt.pix.pixelformat = fmt->fourcc;
|
|
|
- f->fmt.pix.bytesperline = (dev->width * fmt->depth + 7) >> 3;
|
|
|
+ f->fmt.pix.bytesperline = (width * fmt->depth + 7) >> 3;
|
|
|
f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height;
|
|
|
f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
|
|
|
if (dev->progressive)
|