diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-08 20:30:58 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2009-01-08 20:30:58 +0100 |
commit | 976d86691c5d5d9ecc516afc37357d024f9b314f (patch) | |
tree | 118e2df3ee1075a15f2eaca1ff560c9227e61fa7 /linux/drivers/media/video/gspca | |
parent | 46d0baca550ed5a58ad1dbf12de389f08e2e97b3 (diff) | |
download | mediapointer-dvb-s2-976d86691c5d5d9ecc516afc37357d024f9b314f.tar.gz mediapointer-dvb-s2-976d86691c5d5d9ecc516afc37357d024f9b314f.tar.bz2 |
gspca - mars: Bad isoc packet scanning.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca')
-rw-r--r-- | linux/drivers/media/video/gspca/mars.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/gspca/mars.c b/linux/drivers/media/video/gspca/mars.c index c51327f26..a91e69c40 100644 --- a/linux/drivers/media/video/gspca/mars.c +++ b/linux/drivers/media/video/gspca/mars.c @@ -363,12 +363,12 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, PDEBUG(D_PACK, "sof offset: %d len: %d", p, len); frame = gspca_frame_add(gspca_dev, LAST_PACKET, - frame, data, 0); + frame, data, p); /* put the JPEG header */ jpeg_put_header(gspca_dev, frame, 0x21); - data += 16; - len -= 16; + data += p + 16; + len -= p + 16; break; } } |