提交 23d9e477 编写于 作者: J Jean-Francois Moine 提交者: Mauro Carvalho Chehab

V4L/DVB (8661): gspca: Bug in the previous changeset about pac7311.

Signed-off-by: NJean-Francois Moine <moinejf@free.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 e52a5574
......@@ -610,13 +610,14 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
continue;
switch (data[i + 1]) {
case 0xd9: /* end of frame */
i += 2;
frame = gspca_frame_add(gspca_dev,
LAST_PACKET,
frame, data, i + 1);
data += INTER_FRAME;
len -= INTER_FRAME;
frame, data, i);
data += i + INTER_FRAME;
len -= i + INTER_FRAME;
i = 0;
if (len > LUM_OFFSET)
if (len > -LUM_OFFSET)
sd->lum_sum += data[-LUM_OFFSET];
if (len < 0) {
sd->tosof = -len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册