[patch] allow empty ID3v2 frames

Peter van Hardenberg pvh at songbirdnest.com
Fri Jan 23 19:43:01 CET 2009


Some media software out there is creating ID3v2 tags with a 0-length data field. This patch keeps TagLib from failing to parse those tags by allowing a 0-length data field. The ID3v2.4 spec I consulted specifically states that the length should be non-zero, but obviously improving support for data in the wild is desirable.

This passed all our tests and is working fine in Songbird, but I'm posting it here for wider consideration.

-pvh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allowemptyid3v2frames.patch
Type: application/octet-stream
Size: 980 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20090123/a4a6b2d6/attachment.dll 


More information about the taglib-devel mailing list