mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
hls: Relax webvtt checks
If no hour field is present (which is allowed), the remaining data can be less than 15 character. Fix time translation failures if the hour field wasn't present Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2248>
This commit is contained in:
parent
722a6c7708
commit
8f2d347559
1 changed files with 1 additions and 1 deletions
|
@ -772,7 +772,7 @@ process_webvtt_cue_timing_setting_line (const gchar * input,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* --> */
|
/* --> */
|
||||||
if (gst_byte_reader_get_remaining (&br) < 15 ||
|
if (gst_byte_reader_get_remaining (&br) < 12 ||
|
||||||
g_ascii_strncasecmp ((const gchar *)
|
g_ascii_strncasecmp ((const gchar *)
|
||||||
gst_byte_reader_peek_data_unchecked (&br), "-->", 3))
|
gst_byte_reader_peek_data_unchecked (&br), "-->", 3))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue