aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/mars.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-08 14:30:58 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:30 -0400
commit0a32ef3fc81fcebf679139534a9f806cb9ff538c (patch)
treed14475e522dca2745c88d4228dd17c6c1feb9783 /drivers/media/video/gspca/mars.c
parenta0306bfa011d86899f3e88d35b6ffe525271bafc (diff)
V4L/DVB (10348): gspca - mars: Bad isoc packet scanning.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/mars.c')
-rw-r--r--drivers/media/video/gspca/mars.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c
index e85ba1aa8bd3..1eeac4041a61 100644
--- a/drivers/media/video/gspca/mars.c
+++ b/drivers/media/video/gspca/mars.c
@@ -325,12 +325,12 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
325 PDEBUG(D_PACK, "sof offset: %d len: %d", 325 PDEBUG(D_PACK, "sof offset: %d len: %d",
326 p, len); 326 p, len);
327 frame = gspca_frame_add(gspca_dev, LAST_PACKET, 327 frame = gspca_frame_add(gspca_dev, LAST_PACKET,
328 frame, data, 0); 328 frame, data, p);
329 329
330 /* put the JPEG header */ 330 /* put the JPEG header */
331 jpeg_put_header(gspca_dev, frame, 0x21); 331 jpeg_put_header(gspca_dev, frame, 0x21);
332 data += 16; 332 data += p + 16;
333 len -= 16; 333 len -= p + 16;
334 break; 334 break;
335 } 335 }
336 } 336 }