Skip to content

Commit

Permalink
V4L/DVB (8661): gspca: Bug in the previous changeset about pac7311.
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Sep 3, 2008
1 parent e52a557 commit 23d9e47
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/media/video/gspca/pac7311.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23d9e47

Please sign in to comment.