Commit 23d9e477 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

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

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent e52a5574
...@@ -610,13 +610,14 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, ...@@ -610,13 +610,14 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
continue; continue;
switch (data[i + 1]) { switch (data[i + 1]) {
case 0xd9: /* end of frame */ case 0xd9: /* end of frame */
i += 2;
frame = gspca_frame_add(gspca_dev, frame = gspca_frame_add(gspca_dev,
LAST_PACKET, LAST_PACKET,
frame, data, i + 1); frame, data, i);
data += INTER_FRAME; data += i + INTER_FRAME;
len -= INTER_FRAME; len -= i + INTER_FRAME;
i = 0; i = 0;
if (len > LUM_OFFSET) if (len > -LUM_OFFSET)
sd->lum_sum += data[-LUM_OFFSET]; sd->lum_sum += data[-LUM_OFFSET];
if (len < 0) { if (len < 0) {
sd->tosof = -len; sd->tosof = -len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment