From 7902e13df5e8e9499bd149ba043de1cd0fb0e1ce Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 15 Feb 2011 19:23:48 -0800 Subject: [PATCH] typefind: Fix mpeg TS detection --- gst/typefind/gsttypefindfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 6646944..1180930 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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 */ -- 2.7.4