V4L/DVB (9089): gspca: Remove the duplicated EOF (ff d9) in t613.
authorJean-Francois Moine <moinejf@free.fr>
Mon, 29 Sep 2008 10:03:06 +0000 (07:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:37:12 +0000 (09:37 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/t613.c

index 78c6742..7e435a3 100644 (file)
@@ -916,7 +916,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
                return;
        }
 
-       if (data[len - 1] == 0xff && data[len] == 0xd9) {
+       if (data[len - 2] == 0xff && data[len - 1] == 0xd9) {
                /* Just in case, i have seen packets with the marker,
                 * other's do not include it... */
                data += 2;