aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/id3lib.rb
diff options
context:
space:
mode:
authorkmowery2010-05-20 14:29:52 -0700
committerAdam Vandenberg2010-05-20 14:47:09 -0700
commit97d661fd9939c112e880046a902de442ba1f6444 (patch)
tree1faf072cd1dca2141edd42827701ec0dc777afbe /Library/Formula/id3lib.rb
parent3978603c7cb222a4e80e244b42620949e87c52cc (diff)
downloadhomebrew-97d661fd9939c112e880046a902de442ba1f6444.tar.bz2
id3lib 3.8.3 bugfix patch
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * add head
Diffstat (limited to 'Library/Formula/id3lib.rb')
-rw-r--r--Library/Formula/id3lib.rb28
1 files changed, 25 insertions, 3 deletions
diff --git a/Library/Formula/id3lib.rb b/Library/Formula/id3lib.rb
index d36f34356..0ff235362 100644
--- a/Library/Formula/id3lib.rb
+++ b/Library/Formula/id3lib.rb
@@ -1,12 +1,34 @@
require 'formula'
class Id3lib <Formula
- @url='http://downloads.sourceforge.net/project/id3lib/id3lib/3.8.3/id3lib-3.8.3.tar.gz'
- @homepage='http://id3lib.sourceforge.net/'
- @md5='19f27ddd2dda4b2d26a559a4f0f402a7'
+ url 'http://downloads.sourceforge.net/project/id3lib/id3lib/3.8.3/id3lib-3.8.3.tar.gz'
+ head "cvs://:pserver:anonymous@id3lib.cvs.sourceforge.net:/cvsroot/id3lib:id3lib-devel"
+ homepage 'http://id3lib.sourceforge.net/'
+ md5 '19f27ddd2dda4b2d26a559a4f0f402a7'
+
+ def patches
+ {:p1 => DATA }
+ end unless ARGV.include? "--HEAD"
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end
+
+# Wrong header size... I believe this bug is fixed in id3lib HEAD.
+# Bug: http://sourceforge.net/tracker/index.php?func=detail&amp;aid=697951&amp;group_id=979&amp;atid=100979
+__END__
+diff --git a/src/mp3_parse.cpp b/src/mp3_parse.cpp
+index 41d8560..fc8992b 100755
+--- a/src/mp3_parse.cpp
++++ b/src/mp3_parse.cpp
+@@ -465,7 +465,7 @@ bool Mp3Info::Parse(ID3_Reader& reader, size_t mp3size)
+ // from http://www.xingtech.com/developer/mp3/
+
+ const size_t VBR_HEADER_MIN_SIZE = 8; // "xing" + flags are fixed
+- const size_t VBR_HEADER_MAX_SIZE = 116; // frames, bytes, toc and scale are optional
++ const size_t VBR_HEADER_MAX_SIZE = 120; // frames, bytes, toc and scale are optional
+
+ if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE)
+ {