summaryrefslogtreecommitdiff
path: root/gst/typefind
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2020-04-10 22:45:26 +1000
committerJan Schmidt <jan@centricular.com>2020-04-10 22:47:04 +1000
commit7e5368627e4c26bf965a3c64fd12ef1f859170a7 (patch)
tree189718ff20e5dab8ae91cfd7e008b2b4891eae61 /gst/typefind
parente38070d15732d663a3b299a1a9d7c4955808051a (diff)
downloadgstreamer-plugins-base-7e5368627e4c26bf965a3c64fd12ef1f859170a7.tar.gz
typefind: Consider MPEG-PS PSM to be a PES type
Include the Program Stream Map packet type 0xBC in the set of packets we treat as PES. This fixes typefinding on MPEG-PS streams with PSM, where the PSM would previously be considered a loss-of-sync and cause the typefind to require more data.
Diffstat (limited to 'gst/typefind')
-rw-r--r--gst/typefind/gsttypefindfunctions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c
index 0d6ebb618..cbb0312c9 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -2222,7 +2222,7 @@ static GstStaticCaps mpeg_sys_caps = GST_STATIC_CAPS ("video/mpeg, "
IS_MPEG_PACK_CODE (((guint8 *)(data))[3]))
#define IS_MPEG_PES_CODE(b) (((b) & 0xF0) == 0xE0 || ((b) & 0xF0) == 0xC0 || \
- (b) >= 0xBD)
+ (b) >= 0xBC)
#define IS_MPEG_PES_HEADER(data) (IS_MPEG_HEADER (data) && \
IS_MPEG_PES_CODE (((guint8 *)(data))[3]))