mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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.
This commit is contained in:
parent
e38070d157
commit
7e5368627e
1 changed files with 1 additions and 1 deletions
|
@ -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]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue