summaryrefslogtreecommitdiff
path: root/ext/ttml
diff options
context:
space:
mode:
authorChris Bass <floobleflam@gmail.com>2020-08-25 14:54:31 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-10-30 07:01:52 +0000
commit8df2314c23386ab7c395664c5ead9f0d8cd044e2 (patch)
tree4544b0cc9a29a3ad61deef90ae781458705f86fe /ext/ttml
parentdd7b672830cdf030422258bf382af7402fe309ac (diff)
downloadgstreamer-plugins-bad-8df2314c23386ab7c395664c5ead9f0d8cd044e2.tar.gz
ttmlparse: Ensure only single TTML doc parsed
The parser handles only one TTML file at a time, therefore if there are multiple TTML documets in the input, parse only the first. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1539>
Diffstat (limited to 'ext/ttml')
-rw-r--r--ext/ttml/ttmlparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ttml/ttmlparse.c b/ext/ttml/ttmlparse.c
index 25895463a..4914910f7 100644
--- a/ext/ttml/ttmlparse.c
+++ b/ext/ttml/ttmlparse.c
@@ -1952,7 +1952,7 @@ ttml_parse (const gchar * input, GstClockTime begin, GstClockTime duration,
}
GST_CAT_LOG (ttmlparse_debug, "Input:\n%s", input);
- end_tt = g_strrstr (input, TTML_END_TAG);
+ end_tt = g_strstr_len (input, strlen (input), TTML_END_TAG);
if (!end_tt) {
GST_CAT_DEBUG (ttmlparse_debug, "Need more data");