typefindfunctions: fix off-by-one in webvtt typefinder
authorTim-Philipp Müller <tim@centricular.com>
Thu, 2 Nov 2017 09:05:47 +0000 (09:05 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 2 Nov 2017 09:05:47 +0000 (09:05 +0000)
We're also checking the byte after the WEBVTT magic.

gst/typefind/gsttypefindfunctions.c

index 839ee4f..2bbb88d 100644 (file)
@@ -4790,7 +4790,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;