Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192959
b: refs/heads/master
c: 0a06203
h: refs/heads/master
i:
  192957: 19c8703
  192955: 4466ebd
  192951: ccc51da
  192943: 21f0e72
  192927: 910c61f
  192895: 96171b0
v: v3
  • Loading branch information
Herton Ronaldo Krzesinski authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent e98a85f commit e2e4875
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 2b0691cfc714a0f4dff582c913de1a3a68cb38a7
refs/heads/master: 0a062033f727dc041691bfd768f4cf0598f559a1
11 changes: 9 additions & 2 deletions trunk/drivers/media/video/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1632,8 +1632,15 @@ static int saa7134_try_fmt_vid_cap(struct file *file, void *priv,
}

f->fmt.pix.field = field;
v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2,
&f->fmt.pix.height, 32, maxh, 0, 0);
if (f->fmt.pix.width < 48)
f->fmt.pix.width = 48;
if (f->fmt.pix.height < 32)
f->fmt.pix.height = 32;
if (f->fmt.pix.width > maxw)
f->fmt.pix.width = maxw;
if (f->fmt.pix.height > maxh)
f->fmt.pix.height = maxh;
f->fmt.pix.width &= ~0x03;
f->fmt.pix.bytesperline =
(f->fmt.pix.width * fmt->depth) >> 3;
f->fmt.pix.sizeimage =
Expand Down

0 comments on commit e2e4875

Please sign in to comment.