From 1638859627fe8a9bc7373d99fb06ab9c0727988b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 26 Apr 2015 14:44:33 +0100 Subject: [PATCH] typefinding: don't read more data than needed in MSS typefinder --- gst/typefind/gsttypefindfunctions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index eb99ef7041..2aa0bf0f56 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -3607,8 +3607,9 @@ mss_manifest_type_find (GstTypeFind * tf, gpointer unused) length = 512; else if (length < 64) return; + else /* the first few bytes should be enough */ + length = MIN (1024, length); - /* FIXME: we probably don't need or want the entire thing.. */ data = gst_type_find_peek (tf, 0, length); if (data == NULL)