From: Tim-Philipp Müller Date: Thu, 2 Nov 2017 09:05:47 +0000 (+0000) Subject: typefindfunctions: fix off-by-one in webvtt typefinder X-Git-Tag: 1.16.2~1033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c749f75a58238349a6c74f7f4a01a987f62dcd3;p=platform%2Fupstream%2Fgst-plugins-base.git typefindfunctions: fix off-by-one in webvtt typefinder We're also checking the byte after the WEBVTT magic. --- 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;