diff options
author | Chris Bass <floobleflam@gmail.com> | 2020-08-25 14:54:31 +0100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-10-30 07:01:52 +0000 |
commit | 8df2314c23386ab7c395664c5ead9f0d8cd044e2 (patch) | |
tree | 4544b0cc9a29a3ad61deef90ae781458705f86fe /ext | |
parent | dd7b672830cdf030422258bf382af7402fe309ac (diff) | |
download | gstreamer-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')
-rw-r--r-- | ext/ttml/ttmlparse.c | 2 |
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"); |