From 8872bd69012a883058c02e40735b0bd0e2768dd1 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 9 Apr 2003 21:07:47 +0000 Subject: See #104854 - too high chance for false positives, so reverting Original commit message from CVS: See #104854 - too high chance for false positives, so reverting --- gst/mpegaudioparse/gstmp3types.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/mpegaudioparse/gstmp3types.c') diff --git a/gst/mpegaudioparse/gstmp3types.c b/gst/mpegaudioparse/gstmp3types.c index 2e91397d..6ea3d6d1 100644 --- a/gst/mpegaudioparse/gstmp3types.c +++ b/gst/mpegaudioparse/gstmp3types.c @@ -81,6 +81,10 @@ mp3_type_find(GstBuffer *buf, gpointer private) if (size < 4) return NULL; + /* disabled because on a random buffer of 4096 bytes, + * this has a chance of 35% or so for false positives. + * -> rather not */ +#if 0 /* Now search through the entire rest of the buffer for a valid header. * This is a very rough initial cut, it should be checking the length of * the frame and verifying that there is indeed a second frame. The mp3 @@ -109,6 +113,7 @@ mp3_type_find(GstBuffer *buf, gpointer private) (((head >> 10) & 0x3) != 0x3) ) goto success; } +#endif return NULL; -- cgit v1.2.1