[pkg-mad-maintainers] Patch to libid3tag0-dev for EasyH10

Sam Clegg sam at superduper.net
Wed Aug 24 07:56:07 UTC 2005


nyaochi wrote:
> Hi all,
> 
> My patch used in EasyH10 has three enhancements:

> 1) id3_file_content_offset() function to tell the offset position where
> ID3v2 tag stored in an MP3 file ends

You can do this by using the lower lever id3_tag_query interface.  The
fact is that V2 tags can occur at all points in a file so you need to
be prepared to call id3_tag_query whenever you find non-MP3-frame data.
id3_tag_query will tell you how long the tag is.

> 2) Adding an interface to obtain both ID3v1 and ID3v2 values separately

IIRC unstream indended the id3_file interface to hide the fact that
multiple tags may exist.  If you want to access individual tags you
can use id3_tag_query (on the end of the file for V1 and the beginning
for V2).

If you don't want to modify your program to use the id3_tag_query
interface then we can concider patching the debian version, but this
is never very satisfactory.  Its always better to get this kind of thing
accepted upstream.

> 3) Modifying the behavior when an error occurrer.

Now this we should certainly include.  I'm not sure why upstream doesn't
do this already.  I can only guess that he wasn't aware that many such
files exist.  I have to admit I have never come accross such a tag.
However, if several users have had problems I suggest we take this patch.

-- 
sam clegg
:: sam at superduper.net :: http://superduper.net/ :: PGP : D91EE369
$superduper: .signature,v 1.14 2005/01/19 13:21:14 sam Exp $
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mad-maintainers/attachments/20050824/55744a92/signature.pgp


More information about the pkg-mad-maintainers mailing list