Skip to content

Commit

Permalink
V4L/DVB (10348): gspca - mars: Bad isoc packet scanning.
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@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent a0306bf commit 0a32ef3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/gspca/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0a32ef3

Please sign in to comment.