summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-11-02 09:05:47 +0000
committerEdward Hervey <bilboed@bilboed.com>2017-12-01 10:02:03 +0100
commit13ff485d6f927eaa2cd7e5eada7265467300de13 (patch)
tree53846e4bddc47bbdd838ada0a8a6642fb2294a70
parenta8f610f2ce61c922f90dae4b971cba687fee0c86 (diff)
downloadgstreamer-plugins-base-13ff485d6f927eaa2cd7e5eada7265467300de13.tar.gz
typefindfunctions: fix off-by-one in webvtt typefinder
We're also checking the byte after the WEBVTT magic.
-rw-r--r--gst/typefind/gsttypefindfunctions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c
index cf3202ada..60e8d066f 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -4696,7 +4696,7 @@ webvtt_type_find (GstTypeFind * tf, gpointer private)
{
const guint8 *data;
- data = gst_type_find_peek (tf, 0, 9);
+ data = gst_type_find_peek (tf, 0, 10);
if (data == NULL)
return;