summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-06-18 11:03:20 +0200
committerhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-06-18 11:03:20 +0200
commit0d075253d693d11e8836f40d3fe3641f8e8901b1 (patch)
tree9dcd4756e8fc2b31086df73fa47b9f2ba94b917d /linux
parent3c6cdde4a672a5ea91daf67cb9c53009c6c11d67 (diff)
downloadmediapointer-dvb-s2-0d075253d693d11e8836f40d3fe3641f8e8901b1.tar.gz
mediapointer-dvb-s2-0d075253d693d11e8836f40d3fe3641f8e8901b1.tar.bz2
gspca_sonixj: increase 640x480 frame-buffersize
From: Hans de Goede <hdegoede@redhat.com> gspca_sonixj: increase 640x480 frame-buffersize, as I was getting buffer overflows during my testing of a "Premier" 0c45:613e cam Priority: normal Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/gspca/sonixj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/sonixj.c b/linux/drivers/media/video/gspca/sonixj.c
index 9ca72e2ac..621eee625 100644
--- a/linux/drivers/media/video/gspca/sonixj.c
+++ b/linux/drivers/media/video/gspca/sonixj.c
@@ -278,7 +278,8 @@ static const struct v4l2_pix_format vga_mode[] = {
.priv = 1},
{640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
.bytesperline = 640,
- .sizeimage = 640 * 480 * 3 / 8 + 590,
+ /* Note 3 / 8 is not large enough, not even 5 / 8 is ?! */
+ .sizeimage = 640 * 480 * 3 / 4 + 590,
.colorspace = V4L2_COLORSPACE_JPEG,
.priv = 0},
};