summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-06 08:40:55 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-07-06 08:40:55 +0200
commit6c325f8726dac9679266c4fd4bbf4d8297455f92 (patch)
tree2559e3cd843ed16761a373cdbe718bf933a0dd72 /linux
parent0809b225fb8954eecc82e6e05e32dbb462c06813 (diff)
downloadmediapointer-dvb-s2-6c325f8726dac9679266c4fd4bbf4d8297455f92.tar.gz
mediapointer-dvb-s2-6c325f8726dac9679266c4fd4bbf4d8297455f92.tar.bz2
gspca: PAC207 frames may be not compressed.
From: Hans de Goede <j.w.r.degoede@hhs.nl> 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>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/gspca/pac207.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/pac207.c b/linux/drivers/media/video/gspca/pac207.c
index b580af92d..4f197c1f4 100644
--- a/linux/drivers/media/video/gspca/pac207.c
+++ b/linux/drivers/media/video/gspca/pac207.c
@@ -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},
};