summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2020-04-10 22:45:26 +1000
committerTim-Philipp Müller <tim@centricular.com>2020-09-25 00:32:27 +0100
commit9e6935ebd528f5e139862a1aee10789e83915339 (patch)
tree17d11f5c6fd9dd65668583ab059aedf19c533c1a
parent2ac6fbbb8b51e456eeed5ee9eea4554ee83fa029 (diff)
downloadgstreamer-plugins-base-9e6935ebd528f5e139862a1aee10789e83915339.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. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/824>
-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 11cee9af5..baef18e05 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -2155,7 +2155,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]))