Skip to content

Commit

Permalink
V4L/DVB (8202): gspca: PAC207 frames may be not compressed.
Browse files Browse the repository at this point in the history
pac207:   Set the sizeimage to the max value for 352x288.

Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent c2446b3 commit 80544d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/gspca/pac207.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ static struct v4l2_pix_format sif_mode[] = {
.priv = 1},
{352, 288, V4L2_PIX_FMT_PAC207, V4L2_FIELD_NONE,
.bytesperline = 352,
.sizeimage = 352 * 288 / 2, /* compressed */
/* compressed, but only when needed (not compressed
when the framerate is low) */
.sizeimage = (352 + 2) * 288,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 0},
};
Expand Down

0 comments on commit 80544d3

Please sign in to comment.