Index: m5602_v4l2.c
===================================================================
--- m5602_v4l2.c	(revision 402)
+++ m5602_v4l2.c	(working copy)
@@ -31,6 +31,8 @@
 	{V4L2_PIX_FMT_SBGGR8, "BAYER"}
 };
 
+static u8 last;
+
 u32 m5602_request_buffers(struct m5602_camera *cam, u32 count)
 {
 	u32 i;
@@ -189,9 +192,15 @@
 			continue;
 
 		/* Frame delimiter: ff xx xx xx ff ff */
-		if (pos[0] == 0xff && pos[4] == 0xff && pos[5] == 0xff) {
-			PDEBUG(DBG_DATA, "Frame delimiter detected");
+		if (pos[0] == 0xff && pos[1] == 0xbf && pos[2] == pos[3] && pos[4] == 0xff && pos[5] == 0xff) {
+			PDEBUG(DBG_DATA, "Frame delimiter 0x%x detected ",pos[2]);
 
+			if (last == pos[2]){
+				info("same frame number 0x%x", pos[2]);
+			}
+			last = pos[2];
+
+			
 			/* Remove the extra fluff appended on each header */
 			pos += 6;
 			len -= 6;