typefind: Fix mpeg TS detection
authorDavid Schleef <ds@schleef.org>
Wed, 16 Feb 2011 03:23:48 +0000 (19:23 -0800)
committerDavid Schleef <ds@schleef.org>
Fri, 18 Feb 2011 02:29:57 +0000 (18:29 -0800)
gst/typefind/gsttypefindfunctions.c

index 6646944..1180930 100644 (file)
@@ -1896,7 +1896,7 @@ static GstStaticCaps mpegts_caps = GST_STATIC_CAPS ("video/mpegts, "
 /* Check for sync byte, error_indicator == 0 and packet has payload */
 #define IS_MPEGTS_HEADER(data) (((data)[0] == 0x47) && \
                                 (((data)[1] & 0x80) == 0x00) && \
-                                (((data)[3] & 0x10) == 0x10))
+                                (((data)[3] & 0x30) != 0x00))
 
 /* Helper function to search ahead at intervals of packet_size for mpegts
  * headers */