Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377203
b: refs/heads/master
c: 697a6d2
h: refs/heads/master
i:
  377201: a683e32
  377199: 5c5ac7c
v: v3
  • Loading branch information
Katsuya Matsubara authored and Mauro Carvalho Chehab committed Jun 9, 2013
1 parent d015531 commit e18034c
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 6abb3cf2c34554590791b7486e0e32b291feacc4
refs/heads/master: 697a6d2387692c7f9c94f3bfb3dac474aa840f02
6 changes: 3 additions & 3 deletions trunk/drivers/media/platform/sh_veu.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,11 +905,11 @@ static int sh_veu_queue_setup(struct vb2_queue *vq,
if (ftmp.fmt.pix.width != pix->width ||
ftmp.fmt.pix.height != pix->height)
return -EINVAL;
size = pix->bytesperline ? pix->bytesperline * pix->height :
pix->width * pix->height * fmt->depth >> 3;
size = pix->bytesperline ? pix->bytesperline * pix->height * fmt->depth / fmt->ydepth :
pix->width * pix->height * fmt->depth / fmt->ydepth;
} else {
vfmt = sh_veu_get_vfmt(veu, vq->type);
size = vfmt->bytesperline * vfmt->frame.height;
size = vfmt->bytesperline * vfmt->frame.height * vfmt->fmt->depth / vfmt->fmt->ydepth;
}

if (count < 2)
Expand Down

0 comments on commit e18034c

Please sign in to comment.