From 6c749f75a58238349a6c74f7f4a01a987f62dcd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 2 Nov 2017 09:05:47 +0000 Subject: [PATCH] typefindfunctions: fix off-by-one in webvtt typefinder We're also checking the byte after the WEBVTT magic. --- gst/typefind/gsttypefindfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 839ee4f..2bbb88d 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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; -- 2.7.4