mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 01:15:39 +00:00
hlsdemux2: Look for mpegts synchronization point further
Some mpeg-ts streams have extra data at the beginning. While it's not ideal, we should be able to cope with it. Therefore increase the initial search window for at least 4 consecutive synchronization points to 1kB. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2626>
This commit is contained in:
parent
c4971a456e
commit
74f25cca31
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ find_offset (const guint8 * data, guint size, guint * out_packet_size)
|
||||||
const gint packet_size = 188;
|
const gint packet_size = 188;
|
||||||
|
|
||||||
/* FIXME: check 192 as well, and maybe also 204, 208 */
|
/* FIXME: check 192 as well, and maybe also 204, 208 */
|
||||||
for (off = 0; off < MIN (size, packet_size); ++off) {
|
for (off = 0; off < MIN (size, 1024); ++off) {
|
||||||
if (have_ts_sync (data + off, size - off, packet_size, sync_points)) {
|
if (have_ts_sync (data + off, size - off, packet_size, sync_points)) {
|
||||||
*out_packet_size = packet_size;
|
*out_packet_size = packet_size;
|
||||||
return off;
|
return off;
|
||||||
|
|
Loading…
Reference in a new issue