From 54ff9b2b5f2d72f5f6f98acd65d8ebf7375e73b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 6 Jan 2023 14:37:31 +0200 Subject: [PATCH] typefindfunctions: Reduce XML typefinder minimum data size from 64 to 32 bytes 64 bytes makes the typefinder fail on very small XML documents on which it succeeded previously. Part-of: --- subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c index 344c283..121a9a5 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c @@ -660,7 +660,7 @@ xml_check_first_element (GstTypeFind * tf, const gchar * element, guint elen, /* try a default that should be enough */ if (length == 0) length = 512; - else if (length < 64) + else if (length < 32) return FALSE; else /* the first few bytes should be enough */ length = MIN (4096, length); -- 2.7.4