From 04a860c6f7d1d6cc704cb8212457df735fdbbee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 15 Mar 2009 19:57:36 +0000 Subject: [PATCH] typefinding: make flac typefinder return lower probability for frame headers The flac frame header typefinder overstates the likelihood of a match, leading to false positives with e.g. aac streams and PDF files. Reduce probabilty returned from LIKELY to POSSIBLE for the frame header matchin code. Fixes #574939. --- 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 f88e43a188..822ade091f 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -616,7 +616,7 @@ flac_type_find (GstTypeFind * tf, gpointer unused) /* FIXME: shouldn't we include the crc check ? */ GST_DEBUG ("Found flac without headers at %d", (gint) c.offset); - gst_type_find_suggest (tf, GST_TYPE_FIND_LIKELY, FLAC_CAPS); + gst_type_find_suggest (tf, GST_TYPE_FIND_POSSIBLE, FLAC_CAPS); return; } advance: