Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190689
b: refs/heads/master
c: 84a1d9c
h: refs/heads/master
i:
  190687: 8256890
v: v3
  • Loading branch information
Michael Hunold authored and Mauro Carvalho Chehab committed May 6, 2010
1 parent 19e6d77 commit 2a80495
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab51bec1f852f6b858a26e745b32a79cd1a67eec
refs/heads/master: 84a1d9c83e3e13991b958c897b6e9d6a5e4ce76d
8 changes: 5 additions & 3 deletions trunk/drivers/media/common/saa7146_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,11 @@ static int vidioc_s_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *f
/* ok, accept it */
vv->ov_fb = *fb;
vv->ov_fmt = fmt;
if (0 == vv->ov_fb.fmt.bytesperline)
vv->ov_fb.fmt.bytesperline =
vv->ov_fb.fmt.width * fmt->depth / 8;

if (vv->ov_fb.fmt.bytesperline < vv->ov_fb.fmt.width) {
vv->ov_fb.fmt.bytesperline = vv->ov_fb.fmt.width * fmt->depth / 8;
DEB_D(("setting bytesperline to %d\n", vv->ov_fb.fmt.bytesperline));
}

mutex_unlock(&dev->lock);
return 0;
Expand Down

0 comments on commit 2a80495

Please sign in to comment.