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

V4L/DVB (10348): gspca - mars: Bad isoc packet scanning.

Signed-off-by: NJean-Francois Moine <moinejf@free.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a0306bfa
......@@ -325,12 +325,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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册