From: Hans de Goede Date: Thu, 18 Jun 2009 09:03:20 +0000 (-0300) Subject: V4L/DVB (12089): gspca_sonixj: increase 640x480 frame-buffersize X-Git-Tag: 2.1b_release~12124^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5d1cc39fee739cf4fc2a1f43da812c50de9d3d6;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git V4L/DVB (12089): gspca_sonixj: increase 640x480 frame-buffersize gspca_sonixj: increase 640x480 frame-buffersize, as I was getting buffer overflows during my testing of a "Premier" 0c45:613e cam Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 184bb92..4698812 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c @@ -274,7 +274,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}, };