diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-09 21:07:47 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-09 21:07:47 +0000 |
commit | 8872bd69012a883058c02e40735b0bd0e2768dd1 (patch) | |
tree | cd5066f552eb6db9a80c4c3ade032be54390aaad | |
parent | 49645db73950835e148475ccc4f764bf3fe9f027 (diff) | |
download | gst-plugins-bad-8872bd69012a883058c02e40735b0bd0e2768dd1.tar.gz gst-plugins-bad-8872bd69012a883058c02e40735b0bd0e2768dd1.tar.bz2 gst-plugins-bad-8872bd69012a883058c02e40735b0bd0e2768dd1.zip |
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
-rw-r--r-- | gst/mpegaudioparse/gstmp3types.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |