diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-08-08 12:10:16 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-08-08 18:53:04 (GMT) |
commit | 8a016dcc8383bedc731bca9fdedae77ff52a6ad7 (patch) | |
tree | 0accaa04a9d8976f95ca46929ca65f446cc08c53 /drivers/media | |
parent | 43c560fa59ef2688d891f6431e972b7763b73a00 (diff) | |
download | linux-fsl-qoriq-8a016dcc8383bedc731bca9fdedae77ff52a6ad7.tar.xz |
V4L/DVB (4427): Fix V4L1 Compat for VIDIOCGPICT ioctl
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/v4l1-compat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index d83a2c8..d7c3fcb 100644 --- a/drivers/media/video/v4l1-compat.c +++ b/drivers/media/video/v4l1-compat.c @@ -599,6 +599,10 @@ v4l_compat_translate_ioctl(struct inode *inode, dprintk("VIDIOCGPICT / VIDIOC_G_FMT: %d\n",err); break; } + + 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; |