mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
a0306bfa01
commit
0a32ef3fc8
|
@ -325,12 +325,12 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
|
||||||
PDEBUG(D_PACK, "sof offset: %d len: %d",
|
PDEBUG(D_PACK, "sof offset: %d len: %d",
|
||||||
p, len);
|
p, len);
|
||||||
frame = gspca_frame_add(gspca_dev, LAST_PACKET,
|
frame = gspca_frame_add(gspca_dev, LAST_PACKET,
|
||||||
frame, data, 0);
|
frame, data, p);
|
||||||
|
|
||||||
/* put the JPEG header */
|
/* put the JPEG header */
|
||||||
jpeg_put_header(gspca_dev, frame, 0x21);
|
jpeg_put_header(gspca_dev, frame, 0x21);
|
||||||
data += 16;
|
data += p + 16;
|
||||||
len -= 16;
|
len -= p + 16;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue