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:
Edward Hervey 2022-04-20 14:50:35 +02:00 committed by GStreamer Marge Bot
parent 722a6c7708
commit 8f2d347559

View file

@ -772,7 +772,7 @@ process_webvtt_cue_timing_setting_line (const gchar * input,
return FALSE;
/* --> */
if (gst_byte_reader_get_remaining (&br) < 15 ||
if (gst_byte_reader_get_remaining (&br) < 12 ||
g_ascii_strncasecmp ((const gchar *)
gst_byte_reader_peek_data_unchecked (&br), "-->", 3))
return FALSE;