projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb1fcf1
)
[media] coda: frame stride must be a multiple of 8
author
Philipp Zabel
<p.zabel@pengutronix.de>
Thu, 23 May 2013 13:42:54 +0000
(10:42 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 3 Jun 2013 19:01:07 +0000
(16:01 -0300)
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/coda.c
b/drivers/media/platform/coda.c
index 1f3ab53670f880bb71c09adb03e5cd111561fb97..b53c74855702c3f256a65c9fbc35e960bea7931a 100644
(file)
--- a/
drivers/media/platform/coda.c
+++ b/
drivers/media/platform/coda.c
@@
-422,8
+422,9
@@
static int vidioc_try_fmt(struct coda_dev *dev, struct v4l2_format *f)
v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W,
W_ALIGN, &f->fmt.pix.height,
MIN_H, MAX_H, H_ALIGN, S_ALIGN);
- f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 2);
- f->fmt.pix.sizeimage = f->fmt.pix.width *
+ /* Frame stride must be multiple of 8 */
+ f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 8);
+ f->fmt.pix.sizeimage = f->fmt.pix.bytesperline *
f->fmt.pix.height * 3 / 2;
} else { /*encoded formats h.264/mpeg4 */
f->fmt.pix.bytesperline = 0;