diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-07-16 12:00:08 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-07-16 12:00:08 +0200 |
commit | b04e4eae7f422870aeda0b2cb0582acbace9b742 (patch) | |
tree | 0b452de5fbfd3d42bc4583a951d098aecd765b16 /linux | |
parent | dc1edb0687fa7a00e95a47980e58f40198c71256 (diff) | |
download | mediapointer-dvb-s2-b04e4eae7f422870aeda0b2cb0582acbace9b742.tar.gz mediapointer-dvb-s2-b04e4eae7f422870aeda0b2cb0582acbace9b742.tar.bz2 |
gspca: Bad image size with spca501.
From: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/gspca/spca501.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/gspca/spca501.c b/linux/drivers/media/video/gspca/spca501.c index 62c31760e..fb3655dd5 100644 --- a/linux/drivers/media/video/gspca/spca501.c +++ b/linux/drivers/media/video/gspca/spca501.c @@ -104,17 +104,17 @@ static struct ctrl sd_ctrls[] = { static struct v4l2_pix_format vga_mode[] = { {160, 120, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, .bytesperline = 160, - .sizeimage = 160 * 120 * 3 / 8, + .sizeimage = 160 * 120 * 3 / 2, .colorspace = V4L2_COLORSPACE_SRGB, .priv = 2}, {320, 240, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, .bytesperline = 320, - .sizeimage = 320 * 240 * 3 / 8, + .sizeimage = 320 * 240 * 3 / 2, .colorspace = V4L2_COLORSPACE_SRGB, .priv = 1}, {640, 480, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, .bytesperline = 640, - .sizeimage = 640 * 480 * 3 / 8, + .sizeimage = 640 * 480 * 3 / 2, .colorspace = V4L2_COLORSPACE_SRGB, .priv = 0}, }; |