summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-08-03 09:35:24 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-08-03 09:35:24 -0300
commitf6b49c218844c7d0df8010f6745358f5889b52d6 (patch)
treeb4aa072d8a7accdd8485e21a70c10445888ceb53 /linux
parent29db00b6ccfe7409a283a24c4781a797d62c2860 (diff)
downloadmediapointer-dvb-s2-f6b49c218844c7d0df8010f6745358f5889b52d6.tar.gz
mediapointer-dvb-s2-f6b49c218844c7d0df8010f6745358f5889b52d6.tar.bz2
Fix V4L1 Compat for VIDIOCGPICT ioctl
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/v4l1-compat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/v4l1-compat.c b/linux/drivers/media/video/v4l1-compat.c
index decf7069b..dc6f00e12 100644
--- a/linux/drivers/media/video/v4l1-compat.c
+++ b/linux/drivers/media/video/v4l1-compat.c
@@ -612,7 +612,9 @@ v4l_compat_translate_ioctl(struct inode *inode,
break;
}
- pict->depth = (fmt2->fmt.pix.bytesperline/fmt2->fmt.pix.width) << 3;
+ pict->depth = ((fmt2->fmt.pix.bytesperline<<3)
+ + (fmt2->fmt.pix.width-1) )
+ /fmt2->fmt.pix.width;
pict->palette = pixelformat_to_palette(
fmt2->fmt.pix.pixelformat);
break;