Index: tstat/videoL7.c
===================================================================
--- tstat/videoL7.c	(revision 394)
+++ tstat/videoL7.c	(working copy)
@@ -383,7 +383,8 @@
 
   switch (*((u_int32_t *) base)) 
    {
-     case FLV: /* parse header of an FLV video */
+     case VL7_FLV: /* parse header of an FLV video */
+     case VL7_FLV2: /* parse header of an FLV video */
        if (available_data >= 27)
 	{
 	  parse_flv_metadata(meta, base, available_data);
Index: tstat/videoL7.h
===================================================================
--- tstat/videoL7.h	(revision 394)
+++ tstat/videoL7.h	(working copy)
@@ -34,7 +34,8 @@
 #if(BYTE_ORDER == BIG_ENDIAN)
 
 /*Flash header*/
-#define FLV  		0x464C5601UL
+#define VL7_FLV  	0x464C5601UL
+#define VL7_FLV2  	0x1200034BUL
 
 /* AVI header */
 #define AVI  		0x53494646UL
@@ -56,7 +57,8 @@
 #else
 
 /*Flash header*/
-#define FLV  		0x01564C46UL
+#define VL7_FLV  	0x01564C46UL
+#define VL7_FLV2  	0x4B030012UL
 
 /* AVI header */
 #define AVI  		0x46464952UL
Index: tstat/tcpL7.c
===================================================================
--- tstat/tcpL7.c	(revision 394)
+++ tstat/tcpL7.c	(working copy)
@@ -989,6 +989,7 @@
 #endif
 #ifdef VIDEO_DETAILS
               case FLV:         /* parse header of an FLV video */
+              case FLV2:         /* parse header of an FLV video */
                 if (ptp->http_data==HTTP_YOUTUBE_VIDEO||
                     ptp->http_data==HTTP_YOUTUBE_VIDEO204||
                     ptp->http_data==HTTP_YOUTUBE_204)
Index: tstat/tcpL7.h
===================================================================
--- tstat/tcpL7.h	(revision 394)
+++ tstat/tcpL7.h	(working copy)
@@ -64,6 +64,7 @@
 
 /*Flash header*/
 #define FLV  0x464C5601UL
+#define FLV2 0x1200034BUL
 
 /* MP4 header */
 #define MP4  0x00000018UL
@@ -101,6 +102,7 @@
 
 /*Flash header*/
 #define FLV  0x01564C46UL
+#define FLV2 0x4B030012UL
 
 /* MP4 header */
 #define MP4  0x18000000UL
Index: tstat/web.c
===================================================================
--- tstat/web.c	(revision 394)
+++ tstat/web.c	(working copy)
@@ -17,6 +17,7 @@
 */
 
 #include "tstat.h"
+#include "tcpL7.h"
 #ifdef VIDEO_DETAILS
 #include <regex.h>
 #endif
@@ -88,17 +89,31 @@
 void parse_flv_header(tcp_pair *ptp, void *pdata,int data_length)
 {
   struct flv_metadata *meta;
-  char *base = (char *)pdata+4;
+  char *base = (char *)pdata;
   int available_data = data_length - 4 ;
 
   meta = &(ptp->http_meta);
 
+  switch (*((u_int32_t *) base))
+    { 
+      case FLV:
+        /* Full FLV header */
+        base = base+44;
+	break;
+      case FLV2:
+        /* Reduced FLV header */
+        base = base+31;
+	break;
+      default:
+        return;
+    }
+
   /* Read the duration of the FLV - We need at least 58+4 bytes in the payload */
+  /* All minimum sizes are referred to the usage of the full FLV header */
 
   if (available_data < 58)
     return;
 
-  base = base+40;
   if (memcmp(base, "duration", 8) == 0)
    {
      meta->duration = read_double(base+9);
